/* Standardize subcategory images */
.sub-category img,
#mobile-around-world .sub-category img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    margin-left: 2px;
    margin-bottom: 12px;
    border-radius: 8px;
}


/* Graham & Doddsville - Professional Typography System */

/* TYPOGRAPHY SCALE - Consistent Font Hierarchy */
:root {
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Primary brand colour (purple from the logo) */
    --color-primary: #4b2e83;
    --color-accent: #d4af37;
    --color-text: #333;
    --color-text-light: #666;
    --color-text-muted: #888;
    --color-background: #fff;
    --color-background-light: #f8f9fa;
    --color-border: #e8e9ea;

    --font-size-xl: 2.2rem;
    --font-size-lg: 1.5rem;
    --font-size-md: 1.125rem;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-xs: 0.75rem;

    --line-height-tight: 1.2;
    --line-height-base: 1.5;
    --line-height-relaxed: 1.6;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

/* PROFESSIONAL LOGO SYSTEM - Unified Typography */
.logo h1 {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-primary);
    margin: 0;
    letter-spacing: -0.3px;
    text-align: left;
}

.logo .graham {
    color: var(--color-primary);
    font-weight: 700;
}

.logo .and {
    color: var(--color-accent);
    font-weight: 400;
    font-style: italic;
}

.logo .doddsville {
    color: var(--color-primary);
    font-weight: 700;
}

.logo .graham,
.logo .doddsville {
    font-weight: 700;
}

/* PROFESSIONAL TAGLINE STYLING */
.logo .tagline {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-light);
    margin: 0;
    line-height: var(--line-height-base);
    letter-spacing: 0.2px;
}

.logo .and {
    font-style: italic;
    padding: 0 4px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global link hover styles */
a:hover {
    color: #2c3e50 !important;
}

.secondary-nav a:hover,
.main-nav a:hover,
.dropdown-menu a:hover,
.mega-menu a:hover {
    color: #2c3e50 !important;
    text-decoration: none;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

/* TYPOGRAPHY HIERARCHY - Boss Requirements */
body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: #2c3e50;
    /* Improved contrast for accessibility */
    background-color: #fff;
    font-size: 16px;
}

/* Dropdown Styles */
.secondary-nav {
    position: relative;
}

.secondary-nav-list {
    position: relative;
    display: flex;
    list-style: none;
    gap: 20px;
}

.secondary-nav .dropdown {
    position: static;
    display: inline-block;
}

.secondary-nav .dropdown-menu,
.secondary-nav .mega-dropdown,
.secondary-nav .investors-dropdown,
.secondary-nav .wealth-creation-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    z-index: 1000;
    margin-top: 1px;
}

/* Container needs position relative to contain the dropdowns */
.secondary-nav .container {
    position: relative;
}

/* Script will need to set these CSS variables */
:root {
    --wealth-creation-left: 0px;
    --dropdown-top: 0px;
}

.investors-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 800px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .investors-dropdown {
    display: block;
}

.investors-wrapper {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.investor-section {
    margin-bottom: 24px;
}

.investor-section:last-child {
    margin-bottom: 0;
}

.investor-section h4 {
    color: #3a2366;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.investor-list {
    display: grid;
    gap: 8px 24px;
}

.investor-list.double-column {
    grid-template-columns: repeat(2, 1fr);
}

.investor-list.triple-column {
    grid-template-columns: repeat(3, 1fr);
}

.investor-list a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    display: block;
    transition: all 0.2s ease;
}

.investor-list a:hover {
    background-color: #ffffff;
    padding-left: 8px;
}

.see-more-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
    font-style: italic;
    margin-left: 8px;
}

.see-more-link:hover {
    text-decoration: underline;
}

/* Warren Buffett on Everything Section */
.buffett-overview {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    margin: 10px 0;
}

.buffett-overview p {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 20px;
}

.buffett-see-more-container {
    text-align: center;
    margin-top: 0px;
}

.buffett-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border: 0px solid #1e3a8a;
    border-radius: 6px;
    display: inline-block;
}

.buffett-see-more-link:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
    color: white;
}

/* Wealth Creation Dropdown Styles */
.wealth-creation-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 1200px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .wealth-creation-dropdown {
    display: block;
}

.wealth-creation-wrapper {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wealth-section {
    min-width: 180px;
}

.wealth-section h3 {
    color: #3a2366;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #e74c3c;
    padding-bottom: 3px;
}

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

.wealth-section li {
    margin-bottom: 3px;
}

.wealth-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.wealth-section a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* News Loading Animation - Morningstar Style */
.news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.news-loading-text {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    margin-left: 12px;
}

.news-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: news-spin 1s linear infinite;
}

@keyframes news-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced loading with dots animation */
.news-loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.news-loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #3498db;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.news-loading-dots div:nth-child(1) {
    left: 8px;
    animation: news-dots1 0.6s infinite;
}

.news-loading-dots div:nth-child(2) {
    left: 8px;
    animation: news-dots2 0.6s infinite;
}

.news-loading-dots div:nth-child(3) {
    left: 32px;
    animation: news-dots2 0.6s infinite;
}

.news-loading-dots div:nth-child(4) {
    left: 56px;
    animation: news-dots3 0.6s infinite;
}

@keyframes news-dots1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes news-dots3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes news-dots2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

/* Pulse animation for loading text */
.news-loading-pulse {
    animation: news-pulse 1.5s ease-in-out infinite;
}

@keyframes news-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* News Items Styling */
.news-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Mobile-only styling for FEATURE ARTICLES (Revision ID: mobile-feature-articles) */
@media (max-width: 768px) {

    /* Make feature article headings match Latest News headlines */
    #mobile-feature-articles .articles-list .article-item {
        background: transparent !important;
        /* remove grey boxes */
        border: none !important;
        box-shadow: none !important;
        padding: 0px 0 !important;
    }

    #mobile-feature-articles .articles-list .article-item h5 {
        font-family: Georgia, serif;
        font-size: 15px;
        /* Match LATEST NEWS font size */
        font-weight: 600;
        color: #333;
        margin: 0;
        line-height: 1.5;
        display: inline;
        letter-spacing: -0.1px;
    }

    #mobile-feature-articles .articles-list .article-item h5 a {
        color: #000 !important;
        text-decoration: none !important;
        /* remove underline */
    }

    /* Source attribution style placed below heading */
    #mobile-feature-articles .articles-list .article-item .article-source {
        display: block;
        font-size: 12px;
        color: var(--color-text-muted);
        margin-top: 4px;
        font-family: var(--font-secondary);
    }

    /* Only show up to 5 items initially; JS will add .visible class */
    #mobile-feature-articles .articles-list .article-item {
        display: none;
    }

    /* Visible items are single-line rows: headline and source together */
    #mobile-feature-articles .articles-list .article-item.visible {
        display: block;
        /* Change from flex to block to keep things together */
        margin-bottom: 12px;
    }

    /* Source appears inline right after the title */
    #mobile-feature-articles .articles-list .article-item .article-source {
        display: inline;
        color: #888;
        font-size: 13px;
        margin-left: 4px;
    }

    /* Allow headline to take remaining space and prevent excessive wrapping */
    #mobile-feature-articles .articles-list .article-item h5 {
        flex: 1 1 auto;
        margin: 0;
    }

    /* See more link styling */
    #mobile-feature-articles .see-more-mobile {
        display: block;
        text-align: center;
        margin-top: 8px;
        color: #1e3a8a;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 15px;
        text-decoration: none;
        padding: 6px 0;
    }

    /* Center the single See more button and make its background match the page */
    #feature-see-more {
        display: inline-block;
        margin: 8px auto 0 auto;
        background: transparent;
        /* same as page background */
        border: none;
        color: #1e3a8a;
        font-weight: 600;
        font-size: 14px;
        padding: 6px 12px;
        cursor: pointer;
    }

    #feature-see-more:disabled {
        opacity: 0.5;
        cursor: default;
    }

    /* Mobile books See more link */
    .mobile-books-see-more {
        text-align: center;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .mobile-books-see-more-link {
        color: #1e3a8a;
        text-decoration: none;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-weight: 600;
        font-size: 15px;
    }

    /* Book links list styling (Georgia, black, no underline) */
    .book-links-list {
        display: block;
        line-height: 1.6;
    }

    .book-links-list a {
        font-family: Georgia, serif;
        font-size: 15px;
        font-weight: 550;
        color: #000 !important;
        text-decoration: none !important;
        display: inline;
        white-space: normal;
    }

    .book-links-list a:not(:last-child)::after {
        content: "|";
        margin-left: 8px;
        margin-right: 4px;
        color: #ccc;
        font-weight: normal;
        font-family: Arial, sans-serif;
    }

    .book-links-list a:hover {
        text-decoration: underline !important;
        color: #d4af37 !important;
        /* Gold on hover */
    }
}

/* WARREN BUFFETT ON EVERYTHING styling adjustments */
#mobile-buffett .news-source {
    display: none !important;
    /* hide bracketed labels */
}

/* Ensure items are inline by default; JS manages max-height container */
#mobile-buffett .buffett-item-mobile {
    display: inline !important;
    /* show visible items inline like book links */
}

/* Make Buffett headlines match the horizontal book-links style: inline, pipe separators, wrapping */

/* Make Buffett headlines match the horizontal book-links style: inline, pipe separators, wrapping */
#mobile-buffett .books-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
    max-height: 230px;
    /* ~10 lines at 1.4 line height plus row gaps */
    overflow: hidden;
    padding-right: 16px;
    /* Fix 3: Right margin too tight */
}

#mobile-buffett .books-slider.expanded {
    max-height: none;
}

#mobile-buffett .books-slider .buffett-item-mobile.visible {
    display: inline-flex !important;
    /* render visible items inline so they appear like horizontal links */
    align-items: center;
    margin: 0;
    padding: 0;
}

#mobile-buffett .buffett-item-mobile .news-bullet {
    display: none;
    /* remove leading dash to match book-links */
}

#mobile-buffett .news-content {
    margin: 0;
    padding: 0;
}

#mobile-buffett .news-headline {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    font-family: Georgia, serif;
    font-weight: 600;
    /* FIX: Use soft wrapping so words don't break in the middle */
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    /* Changed from break-all */
    hyphens: auto;
    margin: 0;
    display: inline;
}

/* Add pipe separator between inline headlines (except last item) */
#mobile-buffett .books-slider .buffett-item-mobile:not(:last-child) .news-headline::after {
    content: ",";
    /* Fix 1: comma space */
    color: #666;
    margin-right: 4px;
    /* Fix 1: removing space before comma */
    margin-left: 0;
}


.news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.news-header h3 {
    color: #3a2366;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    margin-right: 16px;

    /* 2-line Clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
    /* Fallback for non-webkit */
}

.news-time {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.news-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.news-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.news-source {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
}

.news-category {
    background: #f8f9fa;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive design for Wealth Creation dropdown */
@media (max-width: 1200px) {
    .wealth-creation-dropdown {
        width: 1000px;
        max-width: 95vw;
    }

    .wealth-creation-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 12px;
    }

    .wealth-section h3 {
        font-size: 0.9rem;
    }

    .wealth-section a {
        font-size: 0.75rem;
    }
}

@media (max-width: 900px) {
    .wealth-creation-dropdown {
        width: 800px;
        max-width: 98vw;
    }

    .wealth-creation-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .wealth-section h3 {
        font-size: 0.85rem;
    }

    .wealth-section a {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .wealth-creation-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .wealth-creation-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .wealth-section h3 {
        font-size: 0.8rem;
    }

    .wealth-section a {
        font-size: 0.65rem;
    }
}

/* Financial Markets Dropdown Styles */
.financial-markets-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 1180px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .financial-markets-dropdown {
    display: block;
}

.financial-markets-wrapper {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.financial-section {
    min-width: 200px;
}

.financial-section h3 {
    color: #3a2366;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #3498db;
    /* Blue accent border */
    padding-bottom: 3px;
}

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

.financial-section li {
    margin-bottom: 3px;
}

.financial-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.financial-section a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Responsive design for Financial Markets dropdown */
@media (max-width: 1400px) {
    .financial-markets-dropdown {
        width: 1200px;
        max-width: 95vw;
    }

    .financial-markets-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 12px;
    }

    .financial-section h3 {
        font-size: 0.9rem;
    }

    .financial-section a {
        font-size: 0.75rem;
    }
}

@media (max-width: 1000px) {
    .financial-markets-dropdown {
        width: 900px;
        max-width: 98vw;
    }

    .financial-markets-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .financial-section h3 {
        font-size: 0.85rem;
    }

    .financial-section a {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .financial-markets-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .financial-markets-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .financial-section h3 {
        font-size: 0.8rem;
    }

    .financial-section a {
        font-size: 0.65rem;
    }
}

/* Professional Advisers Dropdown Styles */
.professional-advisers-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 60%;
    transform: translateX(-50%);
    background-color: #fff;
    width: 300px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .professional-advisers-dropdown {
    display: block;
}

.professional-advisers-wrapper {
    padding: 15px;
}

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

.adviser-list li {
    margin-bottom: 8px;
}

.adviser-list a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-left: 3px solid #8e44ad;
    /* Purple accent border */
}

.adviser-list a:hover {
    color: #2c3e50;
    background-color: #f8f9fa;
    text-decoration: none;
    border-left-color: #7d3c98;
}

/* Responsive design for Professional Advisers dropdown */
@media (max-width: 600px) {
    .professional-advisers-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .professional-advisers-wrapper {
        padding: 10px;
    }

    .adviser-list a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Financial Products Dropdown Styles */
.financial-products-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 1180px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .financial-products-dropdown {
    display: block;
}

.financial-products-wrapper {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-section {
    min-width: 200px;
}

.product-section h3 {
    color: #3a2366;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #e74c3c;
    /* Red accent border */
    padding-bottom: 3px;
}

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

.product-section li {
    margin-bottom: 3px;
}

.product-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.product-section a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Responsive design for Financial Products dropdown */
@media (max-width: 1400px) {
    .financial-products-dropdown {
        width: 1200px;
        max-width: 95vw;
    }

    .financial-products-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 12px;
    }

    .product-section h3 {
        font-size: 0.9rem;
    }

    .product-section a {
        font-size: 0.75rem;
    }
}

@media (max-width: 1000px) {
    .financial-products-dropdown {
        width: 900px;
        max-width: 98vw;
    }

    .financial-products-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .product-section h3 {
        font-size: 0.85rem;
    }

    .product-section a {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .financial-products-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .financial-products-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .product-section h3 {
        font-size: 0.8rem;
    }

    .product-section a {
        font-size: 0.65rem;
    }
}

/* Events Dropdown Styles */
.events-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    width: 300px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .events-dropdown {
    display: block;
}

.events-wrapper {
    padding: 15px;
}

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

.event-list li {
    margin-bottom: 8px;
}

.event-list a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-left: 3px solid #3498db;
    /* Blue accent border */
}

.event-list a:hover {
    color: #2c3e50;
    background-color: #f8f9fa;
    text-decoration: none;
    border-left-color: #2980b9;
}

/* Responsive design for Events dropdown */
@media (max-width: 600px) {
    .events-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .events-wrapper {
        padding: 10px;
    }

    .event-list a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Resources Dropdown Styles */
.resources-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 1180px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .resources-dropdown {
    display: block;
}

.resources-wrapper {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resource-section {
    min-width: 200px;
}

.resource-section h3 {
    color: #3a2366;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #27ae60;
    /* Green accent border */
    padding-bottom: 3px;
}

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

.resource-section li {
    margin-bottom: 3px;
}

.resource-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.resource-section a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Responsive design for Resources dropdown */
@media (max-width: 1400px) {
    .resources-dropdown {
        width: 1200px;
        max-width: 95vw;
    }

    .resources-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 12px;
    }

    .resource-section h3 {
        font-size: 0.9rem;
    }

    .resource-section a {
        font-size: 0.75rem;
    }
}

@media (max-width: 1000px) {
    .resources-dropdown {
        width: 900px;
        max-width: 98vw;
    }

    .resources-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .resource-section h3 {
        font-size: 0.85rem;
    }

    .resource-section a {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .resources-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .resources-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .resource-section h3 {
        font-size: 0.8rem;
    }

    .resource-section a {
        font-size: 0.65rem;
    }
}

/* Economics Dropdown Styles */
.economics-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 1180px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .economics-dropdown {
    display: block;
}

.economics-wrapper {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.economics-section {
    min-width: 200px;
}

.economics-section h3 {
    color: #3a2366;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #f39c12;
    /* Orange accent border */
    padding-bottom: 3px;
}

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

.economics-section li {
    margin-bottom: 3px;
}

.economics-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.economics-section a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Responsive design for Economics dropdown */
@media (max-width: 1400px) {
    .economics-dropdown {
        width: 1200px;
        max-width: 95vw;
    }

    .economics-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 12px;
    }

    .economics-section h3 {
        font-size: 0.9rem;
    }

    .economics-section a {
        font-size: 0.75rem;
    }
}

@media (max-width: 1000px) {
    .economics-dropdown {
        width: 900px;
        max-width: 98vw;
    }

    .economics-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .economics-section h3 {
        font-size: 0.85rem;
    }

    .economics-section a {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .economics-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .economics-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .economics-section h3 {
        font-size: 0.8rem;
    }

    .economics-section a {
        font-size: 0.65rem;
    }
}

/* Greatest Investors Dropdown Styles */
.greatest-investors-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 1180px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .greatest-investors-dropdown {
    display: block;
}

.greatest-investors-wrapper {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.investor-section {
    min-width: 200px;
}

.investor-section h3 {
    color: #3a2366;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #9b59b6;
    /* Purple accent border */
    padding-bottom: 3px;
}

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

.investor-section li {
    margin-bottom: 3px;
}

.investor-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.investor-section a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Responsive design for Greatest Investors dropdown */
@media (max-width: 1400px) {
    .greatest-investors-dropdown {
        width: 1200px;
        max-width: 95vw;
    }

    .greatest-investors-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 12px;
    }

    .investor-section h3 {
        font-size: 0.9rem;
    }

    .investor-section a {
        font-size: 0.75rem;
    }
}

@media (max-width: 1000px) {
    .greatest-investors-dropdown {
        width: 900px;
        max-width: 98vw;
    }

    .greatest-investors-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .investor-section h3 {
        font-size: 0.85rem;
    }

    .investor-section a {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .greatest-investors-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .greatest-investors-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .investor-section h3 {
        font-size: 0.8rem;
    }

    .investor-section a {
        font-size: 0.65rem;
    }
}

/* Share Investing Dropdown Styles */
.share-investing-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 1180px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .share-investing-dropdown {
    display: block;
}

.share-investing-wrapper {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.share-section {
    min-width: 200px;
}

.share-section h3 {
    color: #3a2366;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #e67e22;
    /* Orange accent border */
    padding-bottom: 3px;
}

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

.share-section li {
    margin-bottom: 3px;
}

.share-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.share-section a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Responsive design for Share Investing dropdown */
@media (max-width: 1400px) {
    .share-investing-dropdown {
        width: 1200px;
        max-width: 95vw;
    }

    .share-investing-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 12px;
    }

    .share-section h3 {
        font-size: 0.9rem;
    }

    .share-section a {
        font-size: 0.75rem;
    }
}

@media (max-width: 1000px) {
    .share-investing-dropdown {
        width: 900px;
        max-width: 98vw;
    }

    .share-investing-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .share-section h3 {
        font-size: 0.85rem;
    }

    .share-section a {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .share-investing-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .share-investing-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .share-section h3 {
        font-size: 0.8rem;
    }

    .share-section a {
        font-size: 0.65rem;
    }
}

/* Legal & Taxation Dropdown Styles */
.legal-taxation-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 1180px;
    max-width: 90vw;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

.dropdown:hover .legal-taxation-dropdown {
    display: block;
}

.legal-taxation-wrapper {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.legal-section {
    min-width: 200px;
}

.legal-section h3 {
    color: #3a2366;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #27ae60;
    padding-bottom: 3px;
}

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

.legal-section li {
    margin-bottom: 3px;
}

.legal-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Responsive design for Legal & Taxation dropdown */
@media (max-width: 1400px) {
    .legal-taxation-dropdown {
        width: 1200px;
        max-width: 95vw;
    }

    .legal-taxation-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 12px;
    }

    .legal-section h3 {
        font-size: 0.9rem;
    }

    .legal-section a {
        font-size: 0.75rem;
    }
}

@media (max-width: 1000px) {
    .legal-taxation-dropdown {
        width: 900px;
        max-width: 98vw;
    }

    .legal-taxation-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .legal-section h3 {
        font-size: 0.85rem;
    }

    .legal-section a {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .legal-taxation-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .legal-taxation-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .legal-section h3 {
        font-size: 0.8rem;
    }

    .legal-section a {
        font-size: 0.65rem;
    }
}

/* Regular dropdown menu styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    border: 1px solid #eee;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #ffffff;
}

.secondary-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.secondary-nav .dropdown-menu li {
    display: block;
    width: 100%;
}

.secondary-nav .dropdown-menu a {
    color: #2c3e50;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.secondary-nav .dropdown-menu a:hover {
    background-color: #ffffff;
    color: #2c3e50;
}

.secondary-nav .dropdown-toggle::after {
    content: '▼';
    font-size: 8px;
    margin-left: 5px;
    vertical-align: middle;
}

/* CLEAR TYPOGRAPHY HIERARCHY */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.8rem 0;
    color: #6A5A8C;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.6rem 0;
    color: #6A5A8C;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: #34495e;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.4rem 0;
    color: #34495e;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.3rem 0;
    color: #34495e;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Desktop margins - 1.5 inch gap on both sides */
@media (min-width: 768px) {
    body {
        margin: 0 1.5in;
        /* 1.5 inch margins on both sides */
        max-width: calc(100vw - 3in);
        /* Ensure content fits within viewport */
        overflow-x: hidden;
    }
}

/* PROFESSIONAL HEADER - Enhanced Visual Balance */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid #d4af37;
    padding: 12px 0;
    /* Reduced from 24px to 12px */
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Advertisement space at top */
.advertisement-space {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* PROFESSIONAL DATE/TIME BAR - Black background with white text */
.date-time-bar {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #1e3a8a;
}

/* CLEAN HEADER LAYOUT - Matching reference design */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    overflow: visible;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* PROFESSIONAL LOGO STYLING - Stacked layout matching reference */
.logo h1 {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.0;
    text-align: left;
    white-space: pre-line;
}

/* LOGO STACKED LAYOUT - Graham & Doddsville */

.main-nav {
    overflow: visible;
}

/* CLEAN NAVIGATION STYLING - Professional spacing and typography */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    overflow: visible;
}

/* PROFESSIONAL NAVIGATION LINKS - Clean, bold styling */
.main-nav a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* PROPER DROPDOWN NAVIGATION SYSTEM - Boss Requirements */
.main-nav li,
.secondary-nav li {
    position: relative;
}

/* REMOVED - No more mega menus */

/* REMOVED - No more mega menus */

/* ENSURE SOLID BACKGROUNDS - No transparency issues */
.mega-menu,
.mega-menu-column {
    background: #fff !important;
    opacity: 1 !important;
}

/* MODERN HOVER EFFECT - Smooth and professional */
.mega-menu-item:hover .mega-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    opacity: 1;
    transform: translateY(0);
}

/* MORNINGSTAR NAVIGATION HOVER STATES */
.mega-menu-item a {
    position: relative;
    transition: all 0.2s ease;
}

.mega-menu-item:hover a {
    color: #2c3e50;
}

.mega-menu-item:hover a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2c3e50;
}

/* CONSISTENT MENU WIDTHS - Modern, uniform sizing */
.mega-menu-item.wealth-creation-menu .mega-menu {
    width: 900px;
    max-width: 90vw;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.mega-menu-item.legal-taxation-menu .mega-menu,
.mega-menu-item.financial-markets-menu .mega-menu,
.mega-menu-item.share-investing-menu .mega-menu,
.mega-menu-item.investment-analysis-menu .mega-menu,
.mega-menu-item.economics-menu .mega-menu,
.mega-menu-item.professional-advisers-menu .mega-menu,
.mega-menu-item.financial-products-menu .mega-menu,
.mega-menu-item.resources-menu .mega-menu,
.mega-menu-item.events-menu .mega-menu {
    width: 900px;
    max-width: 90vw;
}

.mega-menu-item.greatest-investors-menu .mega-menu {
    width: 800px;
    max-width: 90vw;
}

/* EDGE POSITIONING - Right-aligned for last few items */
.mega-menu-item:nth-last-child(-n+2) .mega-menu {
    left: auto;
    right: 0;
}

/* WEALTH CREATION ALIGNMENT - Center positioned for better visibility */
.mega-menu-item.wealth-creation-menu .mega-menu {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
}

/* MODERN COLUMN STYLING - Clean, professional layout */
.mega-menu-column {
    min-width: 220px;
    max-width: 280px;
    padding: 0 10px;
    box-sizing: border-box;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 70vh;
    background: #fff;
    border-radius: 0;
}

/* Custom scrollbar for webkit browsers */
.mega-menu-column::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-column::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 3px;
}

.mega-menu-column::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.mega-menu-column::-webkit-scrollbar-thumb:hover {
    background: #999;
}


/* MODERN TYPOGRAPHY - Professional, clean styling */
.mega-menu-column h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #ffffff;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

.mega-menu-column a {
    display: block;
    padding: 10px 0;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    line-height: 1.5;
    border-radius: 4px;
    position: relative;
}

.mega-menu-column a:hover {
    color: #2c3e50;
    background-color: #f8f9fa;
    padding-left: 12px;
    transform: translateX(4px);
}

/* MODERN DESCRIPTIVE TEXT */
.mega-menu-column p {
    font-size: 13px;
    color: #666;
    margin: 6px 0 16px 0;
    line-height: 1.4;
    font-style: normal;
}

/* SIMPLE RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .mega-menu {
        max-width: 80vw;
    }

    .mega-menu-item.wealth-creation-menu .mega-menu,
    .mega-menu-item.greatest-investors-menu .mega-menu {
        width: 500px;
        max-width: 75vw;
    }

    .mega-menu-item.legal-taxation-menu .mega-menu,
    .mega-menu-item.financial-markets-menu .mega-menu,
    .mega-menu-item.share-investing-menu .mega-menu,
    .mega-menu-item.investment-analysis-menu .mega-menu,
    .mega-menu-item.economics-menu .mega-menu,
    .mega-menu-item.professional-advisers-menu .mega-menu,
    .mega-menu-item.financial-products-menu .mega-menu,
    .mega-menu-item.resources-menu .mega-menu,
    .mega-menu-item.events-menu .mega-menu {
        width: 700px;
        max-width: 80vw;
    }
}

@media (max-width: 1000px) {
    .mega-menu {
        max-width: 75vw;
    }

    .mega-menu-item.wealth-creation-menu .mega-menu,
    .mega-menu-item.greatest-investors-menu .mega-menu {
        width: 450px;
        max-width: 70vw;
    }

    .mega-menu-item.legal-taxation-menu .mega-menu,
    .mega-menu-item.financial-markets-menu .mega-menu,
    .mega-menu-item.share-investing-menu .mega-menu,
    .mega-menu-item.investment-analysis-menu .mega-menu,
    .mega-menu-item.economics-menu .mega-menu,
    .mega-menu-item.professional-advisers-menu .mega-menu,
    .mega-menu-item.financial-products-menu .mega-menu,
    .mega-menu-item.resources-menu .mega-menu,
    .mega-menu-item.events-menu .mega-menu {
        width: 600px;
        max-width: 75vw;
    }
}

@media (max-width: 768px) {

    /* Mobile Hamburger Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .secondary-nav {
        display: block;
        /* Show on mobile */
    }

    .secondary-nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #ddd;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 10000;
    }

    .secondary-nav-list.active {
        display: flex;
    }

    .secondary-nav-list li {
        margin: 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .secondary-nav-list li:last-child {
        border-bottom: none;
    }

    .secondary-nav-list a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Mobile Touch Targets */
    .filter-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
    }

    .mega-menu-column a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 8px;
    }

    /* Mobile Mega Menu - Simplified */
    .mega-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 15px 0;
        max-height: none;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        background: #f8f9fa;
        margin-top: 10px;
        opacity: 1;
    }

    .mega-menu-item:hover .mega-menu,
    .mega-menu-item.active .mega-menu {
        display: grid;
    }

    .mega-menu-column {
        min-width: 150px;
        max-width: none;
        padding: 10px;
        max-height: none;
    }
}

/* Prevent body scroll when mega menu is open - REMOVED to prevent page shift */

/* Custom scrollbar for mega-menu */
.mega-menu::-webkit-scrollbar {
    height: 8px;
}

.mega-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mega-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Desktop responsive behavior */
@media (min-width: 768px) {
    .mega-menu {
        max-width: 90vw;
    }

    .mega-menu-column {
        min-width: 180px;
        max-width: 220px;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

/* Removed conflicting span rule - using .hamburger-line instead */

/* Secondary Navigation */
/* CLEAN SECONDARY NAVIGATION - Professional styling */
.secondary-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    overflow: visible;
    position: relative;
    z-index: 100;
    display: none;
    /* Hide on desktop by default */
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
    margin: 2px 0;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* CLEAN SECONDARY NAVIGATION - Single horizontal row */
.secondary-nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: nowrap;
    overflow: visible;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* PROFESSIONAL SECONDARY NAVIGATION LINKS */
.secondary-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.secondary-nav a:hover {
    text-decoration: underline;
}

/* PROFESSIONAL DATE DISPLAY */
.date-display {
    background: #fff;
    color: #666;
    padding: 0px 16px;
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Georgia', 'Times New Roman', serif;
    border-bottom: none;
    letter-spacing: 0.3px;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Override blue background for container inside date-display */
.date-display .container {
    background: #fff !important;
}

/* Main Content */
.main-content {
    padding: 20px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 0 20px;
}

.left-column,
.center-column,
.right-column {
    min-width: 0;
}

.full-width-sections {
    grid-column: 1 / -1;
    margin-top: 30px;
}

/* Main Column */
.main-column {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.main-column h2 {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CONTENT ORGANIZATION - Boss Requirements */
/* Card-based layouts for better content organization */
.content-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.content-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Progressive Disclosure - Collapsible Sections */
.collapsible-section {
    margin-bottom: 20px;
}

.collapsible-header {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    background: #e9ecef;
}

.collapsible-header h4 {
    margin: 0;
    color: #2c3e50;
}

.collapsible-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
    color: #666;
}

.collapsible-section.active .collapsible-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.collapsed {
    display: none;
}

.expanded {
    display: block;
}

.collapsible-section.active .collapsible-content {
    max-height: 1000px;
    padding: 20px;
}

/* PERFORMANCE OPTIMIZATION - Boss Requirements */
/* Lazy Loading Styles */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Content Loading States */
.loading-placeholder {
    background: linear-gradient(90deg, #ffffff 25%, #e0e0e0 50%, #ffffff 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    height: 200px;
    margin-bottom: 20px;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Optimized Images */
img {
    max-width: 100%;
    height: auto;
}

/* Content Prioritization */
.above-fold {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.below-fold {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.below-fold.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ACCESSIBILITY IMPROVEMENTS - Boss Requirements */
/* ARIA Labels and Keyboard Navigation */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced button accessibility */
button,
.btn {
    cursor: pointer;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:focus,
.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Enhanced link accessibility */
a {
    color: #3498db;
    text-decoration: underline;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    color: #2980b9;
    text-decoration: none;
}

a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Form accessibility */
input,
textarea,
select {
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    min-height: 44px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #fff;
        color: #000;
    }

    .mega-menu {
        border: 2px solid #000;
        background: #fff;
    }

    .filter-link {
        border: 2px solid #000;
    }
}

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

/* Latest News */
.latest-news {
    margin-bottom: 30px;
}

.news-filters,
.article-filters {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-right: 15px;
    margin-bottom: 10px;
    display: block;
}

.filter-link {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
}

.filter-link:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.filter-link.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.news-list {
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: block;
    padding: 0;
}

/* Dense News Categories */
/* Professional News Categories Grid */
.news-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding: 0;
}

/* Cards that span 2 rows */
.news-category-card.wide {
    grid-row: span 2;
}

.news-category-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #004499);
}

.news-category-card.companies::before {
    background: linear-gradient(90deg, #1e3a8a, #1e40af);
}

.news-category-card.markets::before {
    background: linear-gradient(90deg, #059669, #047857);
}

.news-category-card.economy::before {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.news-category-card.industry::before {
    background: linear-gradient(90deg, #7c3aed, #6d28d9);
}

.news-category-card.wealth-creation::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.news-category-card.legal-taxation::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.category-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.category-header .see-more {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    font-style: italic;
}

.category-header .see-more:hover {
    color: #0066cc;
}

.news-category-column h3 {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-links {
    list-style: none;
}

.news-links li {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.news-links a {
    color: #0066cc;
    text-decoration: none;
}

.news-links a:hover {
    text-decoration: underline;
}

.news-item {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    clear: both;
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #0066cc;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-item h3 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
}

.news-item h3 a {
    color: #000;
    text-decoration: none;
}

.news-item h3 a:hover {
    text-decoration: underline;
}

.news-item p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-excerpt {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
    font-style: italic;
}

.news-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.news-meta span {
    background: #e8e8e8;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
}

.show-more-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.show-more-btn:hover {
    background: #0052a3;
}

/* Feature Articles */
.feature-articles {
    margin-bottom: 30px;
}

/* Desktop FEATURE ARTICLES - match LATEST NEWS format with no spacing */
.feature-articles .news-item {
    margin-bottom: 0;
    /* No space between titles */
}

.feature-articles .news-item h3 {
    margin-bottom: 0;
    /* No space between title and source */
}

/* Feature Articles filters now use the same styling as news-filters */

.articles-list {
    margin-bottom: 10px;
}

.article-item {
    margin-bottom: 0;
    /* No space between titles */
    padding: 0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h3 {
    font-size: 6px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.0;
}

.article-item h3 a {
    color: #000;
    text-decoration: none;
}

.article-item h3 a:hover {
    text-decoration: none;
}

.article-item p {
    font-size: 7px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.2;
}

.article-meta {
    font-size: 6px;
    color: #888;
}

.article-meta .date {
    margin-right: 15px;
}

.article-meta .category {
    background: #ffffff;
    padding: 1px 4px;
    border-radius: 2px;
}

/* Around the World */
.around-world {
    margin-bottom: 30px;
}

.world-news {
    margin-bottom: 20px;
}

.world-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.world-item:last-child {
    border-bottom: none;
}

.world-item h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.4;
}

.world-item h4 a {
    color: #000;
    text-decoration: none;
}

.world-item h4 a:hover {
    text-decoration: underline;
}

.world-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Classic Readings */
.classic-readings {
    margin-bottom: 30px;
}

.readings-list {
    margin-bottom: 20px;
    padding-left: 20px;
}

.readings-list li {
    margin-bottom: 0px;
    font-size: 13px;
    line-height: 1.4;
}

.readings-list a {
    color: #000;
    /* Changed to black to match news headlines */
    text-decoration: none;
}

.readings-list a:hover {
    text-decoration: underline;
}

/* Educational Videos */
.educational-videos {
    margin-bottom: 30px;
}

.video-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.filter-group select {
    padding: 5px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
}

/* Book Feature */
.book-feature {
    margin-bottom: 30px;
}

.featured-book {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
}

.featured-book h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
}

.book-author {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.book-description {
    font-size: 13px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.book-actions {
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #000;
    display: inline-block;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #000;
}

.btn-primary:hover,
.btn-secondary:hover {
    background: #333;
    color: #fff;
}

/* Recommended Books */
.recommended-books {
    margin-bottom: 30px;
}

/* Ensure proper text rendering and punctuation spacing for recommended books */
.recommended-books,
.recommended-books a,
.recommended-books h3,
.recommended-books p,
.recommended-books span {
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.books-list {
    margin-bottom: 20px;
}

.book-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.book-item:last-child {
    border-bottom: none;
}

.book-item h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.book-item h4 a {
    color: #000;
    text-decoration: none;
}

.book-item h4 a:hover {
    text-decoration: underline;
}

.book-author {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Warren Buffett */
.warren-buffett {
    margin-bottom: 30px;
}

.buffett-quotes {
    margin-bottom: 20px;
}

.buffett-quotes blockquote {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #000;
    font-style: italic;
    font-size: 13px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.sidebar {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar h2 {
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

/* Events Section */
.event-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.filter-group select {
    padding: 5px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
}

.events-list {
    margin-bottom: 15px;
}

.event-item {
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
}

.event-item h4 {
    font-size: 13px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.event-item p {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.event-cost {
    font-size: 11px;
    font-weight: bold;
    color: #006600;
    background: #f0f8f0;
    padding: 2px 6px;
    border-radius: 3px;
}

.no-events {
    font-size: 13px;
    color: #666;
    text-align: center;
    padding: 20px;
}

/* Market Quotes */
.market-controls {
    margin-bottom: 15px;
}

.market-tabs {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.time-range-toggles {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.time-btn {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.time-btn.active,
.time-btn:hover {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* Market Table */
.market-table-container {
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
}

/* Market Chart */
.market-chart-container {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#market-chart {
    width: 100%;
    height: 200px;
    background: white;
    border-radius: 4px;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.market-table th,
.market-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.market-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: relative;
}

.market-table th.sortable:hover {
    background: #e9ecef;
}

.market-table th.sortable::after {
    content: '↕';
    position: absolute;
    right: 4px;
    opacity: 0.5;
    font-size: 10px;
}

.market-table th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.market-table th.sort-desc::after {
    content: '↓';
    opacity: 1;
}

.market-table tbody tr:hover {
    background: #f8f9fa;
}

.market-table .symbol {
    font-weight: bold;
    color: #333;
}

.market-table .price {
    font-family: monospace;
    color: #333;
}

.market-table .change.positive {
    color: #28a745;
    font-weight: bold;
}

.market-table .change.negative {
    color: #dc3545;
    font-weight: bold;
}

.market-table .volume {
    color: #666;
    font-size: 11px;
}

/* Enhanced Market Filters */
.market-filters {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.market-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.market-filters label {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
    min-height: 36px;
}

.market-filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.market-filter-select {
    width: 120px;
}

/* Enhanced Market Table Styling */
.market-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.market-table th {
    background: #2c3e50;
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.market-table th:hover {
    background: #34495e;
}

.market-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ffffff;
    transition: background-color 0.2s ease;
}

.market-table tbody tr:hover {
    background: #f8f9fa;
}

.market-table .symbol {
    font-weight: 600;
    color: #2c3e50;
}

.market-table .price {
    font-weight: 600;
    color: #2c3e50;
}

.market-table .change.positive {
    color: #27ae60;
    font-weight: 600;
}

.market-table .change.negative {
    color: #e74c3c;
    font-weight: 600;
}

.market-table .change.neutral {
    color: #7f8c8d;
    font-weight: 600;
}

/* Responsive Market Filters */
@media (max-width: 768px) {
    .market-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .market-filters .filter-group {
        min-width: auto;
    }

    .market-filter-select {
        width: 100%;
    }
}


/* Books Table Styles */
.books-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.books-table {
    width: 100%;
    min-width: 600px;
    /* Minimum width to prevent squishing */
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.books-table th,
.books-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ffffff;
}

.books-table th {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.books-table tbody tr:hover {
    background: #f8f9fa;
}

.books-table .book-title {
    font-weight: 600;
    color: #2c3e50;
}

.books-table .book-title a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.books-table .book-title a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.books-table .book-author {
    color: #7f8c8d;
    font-style: italic;
}

.books-table .book-price {
    font-weight: 600;
    color: #27ae60;
    font-family: monospace;
}

/* Mobile responsiveness for books table */
@media (max-width: 768px) {
    .books-table-container {
        margin: 15px 0;
        border-radius: 6px;
        box-shadow: none;
        overflow-x: visible;
        /* Allow content to be visible */
    }

    .books-table {
        display: none;
        /* Hide table on mobile */
    }

    /* Mobile card layout */
    .books-table-container::after {
        content: "";
        display: block;
        clear: both;
    }

    /* Create mobile cards using CSS */
    .books-mobile-cards {
        display: block;
    }

    .book-mobile-card {
        background: #fff;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border: 1px solid #e0e0e0;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .book-mobile-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .book-mobile-title {
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .book-mobile-title a {
        color: #3498db;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .book-mobile-title a:hover {
        color: #2980b9;
        text-decoration: underline;
    }

    .book-mobile-author {
        font-size: 14px;
        color: #7f8c8d;
        font-style: italic;
        margin-bottom: 8px;
    }

    .book-mobile-price {
        font-size: 16px;
        font-weight: 600;
        color: #27ae60;
        font-family: monospace;
    }
}

/* Video Items */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.featured-video {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.featured-video:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-video h3 {
    margin: 15px 15px 8px 15px;
    font-size: 18px;
    line-height: 1.4;
}

.featured-video .channel {
    color: #666;
    font-size: 14px;
    margin: 0 15px 8px 15px;
}

.featured-video .description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 15px 15px 15px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 100%;
}

.video-item h4 {
    margin: 8px 0 4px 0;
    font-size: 14px;
}

.video-item .channel {
    color: #666;
    font-size: 12px;
    margin-bottom: 0;
}

.video-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e8e8e8;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.video-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #0066cc;
}

.video-item h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.video-item h4 a {
    color: #333;
    text-decoration: none;
}

.video-item h4 a:hover {
    color: #0066cc;
}

.video-item p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.video-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.video-meta span {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

/* Video Thumbnails */
.video-thumbnail {
    position: relative;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: opacity 0.3s ease;
    background-color: #ffffff;
    display: block;
}

/* Fallback for broken images */
.video-thumbnail img:not([src]),
.video-thumbnail img[src=""] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-align: center;
}

.video-thumbnail img:not([src])::after,
.video-thumbnail img[src=""]::after {
    content: "Video Thumbnail";
}

.video-thumbnail:hover img {
    opacity: 0.8;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button {
    background: rgba(0, 102, 204, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-thumbnail.large {
    height: 250px;
    border-radius: 8px 8px 0 0;
}

.video-thumbnail.large img {
    height: 250px;
    border-radius: 8px 8px 0 0;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.video-modal-close:hover {
    color: #000;
}

.video-container {
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.video-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.video-info p {
    color: #666;
    line-height: 1.6;
}

/* About Modal */
.about-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.about-modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.about-modal-close:hover {
    color: #000;
}

.about-content {
    padding-right: 20px;
}

.about-content h1 {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.about-content h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 25px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h3 {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 10px 0;
}

.about-content p {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.about-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.about-content li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.about-content .contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-top: 30px;
}

.about-content .contact-info h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 18px;
}

.about-content .contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.about-content .contact-info strong {
    color: #000;
    font-weight: bold;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.contact-modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.contact-modal-close:hover {
    color: #000;
}

.contact-content {
    padding-right: 20px;
}

.contact-content h1 {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.contact-content h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 25px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-content h3 {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 10px 0;
}

.contact-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-bottom: 30px;
}

.contact-details p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-details strong {
    color: #000;
    font-weight: bold;
}

.email-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.email-section a {
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.email-section a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #fff;
    padding: 25px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Georgia, serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: Georgia, serif;
}

.submit-btn:hover {
    background: #0052a3;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.contact-info p {
    margin-bottom: 1px;
    font-size: 14px;
    color: #333;
}

.contact-info strong {
    color: #000;
    font-weight: bold;
}

/* Advertise Modal */
.advertise-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.advertise-modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.advertise-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.advertise-modal-close:hover {
    color: #000;
}

.advertise-content {
    padding-right: 20px;
}

.advertise-content h1 {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.advertise-content h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 25px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.advertise-content p {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.advertise-contact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-top: 20px;
}

.advertise-contact h2 {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.advertise-contact p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.advertise-contact strong {
    color: #000;
    font-weight: bold;
}

.advertise-contact a {
    color: #0066cc;
    text-decoration: none;
}

.advertise-contact a:hover {
    text-decoration: underline;
}

/* Greatest Investors Menu - Special Layout */
.greatest-investors-menu {
    width: 1000px;
    max-width: calc(100vw - 40px);
    padding: 0;
}

.greatest-investors-menu .mega-menu-column {
    min-width: auto;
    max-width: none;
}

.investors-tabs {
    display: flex;
    min-height: 400px;
}

.tab-nav {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e8e8e8;
    padding: 20px 0;
}

.tab-nav .tab-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.tab-nav .tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.tab-nav .tab-btn.active {
    background: #0066cc;
    color: white;
    border-left-color: #004499;
}

.tab-content {
    flex: 1;
    padding: 20px;
    background: white;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.investors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.investor-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.investor-column a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.investor-column a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Enhanced Book Sections */
.featured-books {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.featured-book {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #f8f9fa;
}

.book-cover img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-details h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 18px;
}

.book-details p {
    margin-bottom: 6px;
    font-size: 14px;
}

.book-author {
    color: #666;
    font-style: italic;
}

.book-year,
.book-publisher,
.book-subject {
    color: #888;
    font-size: 12px;
}

.book-description {
    color: #666;
    line-height: 1.5;
    margin: 10px 0;
}

.book-reviews {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 3px solid #0066cc;
}

.book-reviews p {
    margin-bottom: 4px;
    font-size: 13px;
}

.book-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.book-price .price {
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
}

.books-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.book-category h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
}

.book-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-links li {
    margin-bottom: 8px;
}

.book-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-links li {
    margin-bottom: 8px;
}

.book-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.book-links a:hover {
    color: #0066cc;
}

/* Horizontal book links layout */
.book-links-horizontal {
    display: block;
    width: 200px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    padding-right: 16px;
    /* Fix 1: Minimum 16px right padding so text doesn't touch edge */
}

.book-links-horizontal a {
    color: #333;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 0.96rem;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.book-links-horizontal a:hover {
    color: #0066cc;
}

.book-links-horizontal a:not(:last-child)::after {
    content: "|";
    /* Fix 2: Changed to pipe-space */
    color: #666;
    margin-left: 8px;
    margin-right: 4px;
}

/* Remove the last separator to avoid extra "|" */
.book-links-horizontal a:last-child::after {
    content: none;
}

.book-links-horizontal .see-more {
    color: #666;
    font-style: italic;
    font-size: 12px;
    font-weight: 400;
}

.book-links .see-more {
    color: #666;
    font-style: italic;
    font-size: 12px;
}

/* Normal book links layout - no aggressive word breaking */
.book-links-normal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.book-links-normal a {
    color: #333;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.book-links-normal a:hover {
    color: #0066cc;
}

.book-links-normal a:not(:last-child)::after {
    content: " | ";
    color: #666;
    margin: 0 4px;
}

/* Remove the last separator to avoid extra "|" */
.book-links-normal a:last-child::after {
    content: none;
}

.wealth-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 1px;
}

.value-investing-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 1px;
}

.share-investing-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 1px;
}

.wealth-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.value-investing-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.share-investing-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 12px;
}

.share-investing-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.financial-analysis-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 1px;
}

.financial-analysis-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.sales-marketing-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 1px;
}

.sales-marketing-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.self-improvement-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 1px;
}

.self-improvement-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.business-management-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 1px;
}

.business-management-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

/* Warren Buffett Section */
.buffett-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.buffett-tabs .tab-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    margin-right: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buffett-tabs .tab-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.buffett-tabs .tab-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.buffett-content {
    margin-top: 20px;
}

.buffett-content .tab-content {
    display: none;
}

.buffett-content .tab-content.active {
    display: block;
}

.buffett-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.buffett-column {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.buffett-column:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.column-image {
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.column-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.buffett-column h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066cc;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.buffett-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.buffett-topics li {
    margin-bottom: 8px;
}

.buffett-topics a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.buffett-topics a:hover {
    color: #0066cc;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 20px 0;
}

.error-state h4 {
    color: #dc3545;
    margin-bottom: 10px;
}

.error-state p {
    color: #666;
    margin-bottom: 20px;
}

.retry-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: #0052a3;
}

.tab-btn:hover {
    color: #0066cc;
}

.quotes-list {
    margin-bottom: 15px;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.quote-item:last-child {
    border-bottom: none;
}

.symbol {
    font-weight: bold;
    color: #000;
}

.price {
    color: #333;
}

.change {
    font-weight: bold;
}

.change.positive {
    color: #006600;
}

.change.negative {
    color: #cc0000;
}

/* Guru Watch */
.guru-watch {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.guru-items {
    margin-bottom: 15px;
}

.guru-item {
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
}

.guru-item h4 {
    font-size: 13px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.guru-item p {
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.guru-date {
    font-size: 11px;
    color: #888;
}

/* Regulatory Updates */
.regulatory-updates {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.regulatory-items {
    margin-bottom: 15px;
}

.regulatory-item {
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
}

.regulatory-item h4 {
    font-size: 13px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.regulatory-item p {
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.reg-date {
    font-size: 11px;
    color: #888;
}

/* See More Links */
.see-more {
    text-align: right;
    margin-top: 15px;
}

.see-more a {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

.see-more a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 2px solid #000;
    padding: 0px 0;
    margin-top: 10px;
}

.footer-section h3 {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin: 0 0 1px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .secondary-nav-list {
        justify-content: center;
        gap: 15px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }

    .left-column,
    .center-column,
    .right-column {
        margin-bottom: 30px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .featured-books {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-book {
        flex-direction: column;
        text-align: center;
    }

    .books-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .buffett-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .buffett-tabs {
        flex-wrap: wrap;
    }

    .buffett-tabs .tab-btn {
        flex: 1;
        min-width: 120px;
    }

    .news-categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .video-filters {
        grid-template-columns: 1fr;
    }

    .greatest-investors-menu {
        width: 100%;
        max-width: 100vw;
    }

    .investors-tabs {
        flex-direction: column;
        min-height: auto;
    }

    .tab-nav {
        width: 100%;
        display: flex;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 0;
    }

    .tab-nav .tab-btn {
        flex: 1;
        text-align: center;
        padding: 10px 5px;
        font-size: 11px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .tab-nav .tab-btn.active {
        border-left-color: transparent;
        border-bottom-color: #004499;
    }

    .investors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Mobile mega-menu adjustments */
    .mega-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 10px 0;
        max-height: none;
    }

    .mega-menu.show {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem 1rem;
    }




    /* Mobile market table adjustments */
    .market-table-container {
        font-size: 11px;
    }

    .market-table th,
    .market-table td {
        padding: 6px 4px;
    }

    /* Mobile filter adjustments */
    .news-filters,
    .article-filters {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .filter-label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .filter-link {
        font-size: 12px;
        padding: 6px 12px;
        margin-right: 6px;
        margin-bottom: 6px;
    }

    .book-actions {
        flex-direction: column;
    }


    .news-item {
        margin-bottom: 15px;
        padding: 15px;
    }

    .news-meta {
        flex-direction: column;
        gap: 8px;
    }

    .show-more-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .secondary-nav-list {
        gap: 10px;
    }

    .secondary-nav a {
        font-size: 12px;
    }

    .main-column h2,
    .sidebar h2 {
        font-size: 14px;
    }

    .featured-book {
        padding: 15px;
    }

    .sidebar section {
        padding: 15px;
    }

    .news-categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Print Styles */
@media print {

    .header,
    .secondary-nav,
    .sidebar,
    .footer {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 12px;
    }

    .main-column h2 {
        page-break-after: avoid;
    }

    .article-item,
    .news-item {
        page-break-inside: avoid;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Center the arrow properly */
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.back-to-top.show {
    display: flex;
}

/* Mobile back-to-top positioning */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        /* Move up to avoid overlapping content */
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Improve touch interactions */
    .filter-link,
    .btn,
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    /* Prevent zoom on input focus */
    input,
    select,
    textarea {
        font-size: 16px;
    }

    /* Fix content overflow */
    .news-category-card,
    .widget-panel,
    .event-listings {
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
    }

    /* Improve touch target spacing */
    .filter-link {
        margin: 8px 4px;
        padding: 12px 16px;
    }

    /* Fix image and video responsiveness */
    .news-image img,
    .video-thumbnail img,
    .column-image img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* Add bottom padding to content to prevent overlap */
.main-content {
    padding-bottom: 1px;
}

.back-to-top:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Enhanced Mobile Navigation */
@media (max-width: 767px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid #e0e0e0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        margin: 0;
    }

    .main-nav li {
        margin: 0;
        border-bottom: 1px solid #ffffff;
    }

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

    .main-nav a {
        display: block;
        padding: 1rem;
        color: #333;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

    .main-nav a:hover,
    .main-nav a:focus {
        background-color: #f8f9fa;
        color: #2c3e50;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Ensure mobile menu stays open when clicking links */
    .main-nav a.nav-link {
        pointer-events: auto;
    }
}

/* Comprehensive Responsive Design Improvements */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .left-column,
    .center-column,
    .right-column {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Typography improvements */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Container and layout */
    .container {
        padding: 0 0.75rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
        text-align: center;
    }



    /* Content sections */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Article cards */
    .article-item,
    .news-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .article-item h3,
    .news-item h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .article-item p,
    .news-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Filter buttons */
    .filter-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }

    /* Images - make them responsive */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Video thumbnails */
    .video-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    /* Book covers */
    .book-cover {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    /* Tables */
    .market-data-table {
        font-size: 0.85rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .market-data-table th,
    .market-data-table td {
        padding: 0.5rem 0.25rem;
        min-width: 80px;
    }

    /* Mega menus */
    .mega-menu {
        position: static;
        width: 100%;
        max-width: none;
        box-shadow: none;
        border: 1px solid #e0e0e0;
        margin-top: 0.5rem;
    }

    .mega-menu-column {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Dropdown menus */
    .dropdown-menu {
        position: static;
        width: 100%;
        max-width: none;
        box-shadow: none;
        border: 1px solid #e0e0e0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {

    /* Extra small screens - iPhone SE and similar */
    .container {
        padding: 0 0.5rem;
    }

    .header-content {
        padding: 0.5rem 0;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .article-item,
    .news-item {
        padding: 0.75rem;
    }

    .filter-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }

    /* Fix widget overflow on iPhone SE */
    .widget-panel,
    .event-listings,
    .around-world,
    .classic-readings {
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
    }

    .widget-panel h3,
    .event-listings h3,
    .around-world h3,
    .classic-readings h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .widget-panel p,
    .event-listings p,
    .around-world p,
    .classic-readings p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Prevent horizontal scroll */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* ========================================
   REFINED VISUAL HIERARCHY & LAYOUT
   ======================================== */

/* CSS Custom Properties for Design System */
:root {
    /* Brand Color Palette */
    --primary-navy: #1e3a8a;
    /* Deep navy - primary brand color */
    --primary-gold: #f5b400;
    /* Gold accent - secondary brand color */
    --primary-navy-light: #3b5bdb;
    /* Lighter navy for hover states */
    --primary-gold-light: #fbbf24;
    /* Lighter gold for hover states */

    /* Neutral Grayscale Palette */
    --neutral-50: #f8f9fa;
    /* Lightest gray */
    --neutral-100: #e9ecef;
    /* Very light gray */
    --neutral-200: #dee2e6;
    /* Light gray */
    --neutral-300: #ced4da;
    /* Medium light gray */
    --neutral-400: #adb5bd;
    /* Medium gray */
    --neutral-500: #6c757d;
    /* Medium dark gray */
    --neutral-600: #495057;
    /* Dark gray */
    --neutral-700: #343a40;
    /* Darker gray */
    --neutral-800: #212529;
    /* Very dark gray */
    --neutral-900: #000000;
    /* Black */

    /* Semantic Colors */
    --success: #10b981;
    /* Green for success states */
    --warning: #f59e0b;
    /* Orange for warnings */
    --error: #ef4444;
    /* Red for errors */
    --info: #3b82f6;
    /* Blue for information */

    /* Typography Scale */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 1.875rem;
    /* 30px */
    --font-size-4xl: 2.25rem;
    /* 36px */

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing Scale */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */

    /* Border Radius */
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-md: 0.375rem;
    /* 6px */
    --radius-lg: 0.5rem;
    /* 8px */
    --radius-xl: 0.75rem;
    /* 12px */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* Enhanced Typography Scale with Brand Colors */
h1 {
    font-size: var(--font-size-2xl);
    /* 24px */
    line-height: var(--line-height-tight);
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: var(--space-6);
}

h2 {
    font-size: var(--font-size-xl);
    /* 20px */
    line-height: var(--line-height-tight);
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: var(--space-5);
}

h3 {
    font-size: var(--font-size-base);
    /* 16px */
    line-height: var(--line-height-normal);
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-4);
}

h4 {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: var(--space-3);
}

h5 {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: 500;
    color: var(--neutral-500);
    margin-bottom: var(--space-3);
}

h6 {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    font-weight: 500;
    color: var(--neutral-500);
    margin-bottom: var(--space-2);
}

p {
    font-size: var(--font-size-sm);
    /* 14px */
    line-height: var(--line-height-relaxed);
    color: var(--neutral-700);
    margin-bottom: var(--space-4);
}

/* 12-Column Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-6);
    width: 100%;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.grid-cols-12 {
    grid-template-columns: repeat(12, 1fr);
}

.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-9 {
    grid-column: span 9;
}

.col-span-12 {
    grid-column: span 12;
}

/* Card Component System */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid #e0e0e0;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: var(--space-3);
    line-height: var(--line-height-tight);
}

.card-subtitle {
    font-size: var(--font-size-sm);
    color: #7f8c8d;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.card-text {
    font-size: var(--font-size-sm);
    color: #2c3e50;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-xs);
    color: #7f8c8d;
    margin-top: var(--space-4);
}

/* Enhanced Article Cards */
.article-item,
.news-item {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    border: 1px solid #e0e0e0;
    transition: all var(--transition-normal);
}

.article-item:hover,
.news-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: #3498db;
}

.article-item h3,
.news-item h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: var(--space-4);
    line-height: var(--line-height-tight);
}

.article-item h3 a,
.news-item h3 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-item h3 a:hover,
.news-item h3 a:hover {
    color: #000;
}

.article-item p,
.news-item p {
    color: #2c3e50;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.article-meta,
.news-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-xs);
    color: #7f8c8d;
    margin-top: var(--space-4);
}

/* ========================================
   BRAND STYLE GUIDE & COMPONENTS
   ======================================== */

/* Enhanced Button System with Brand Colors */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    /* 6px - consistent corner radius */
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background-color: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

.btn-primary:hover {
    background-color: var(--primary-navy-light);
    border-color: var(--primary-navy-light);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--primary-gold);
    color: var(--primary-navy);
    border-color: var(--primary-gold);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--primary-gold-light);
    border-color: var(--primary-gold-light);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background-color: transparent;
    color: var(--neutral-600);
    border-color: var(--neutral-300);
}

.btn-ghost:hover {
    background-color: var(--neutral-50);
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

/* Enhanced Link Styling */
a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-navy-light);
    text-decoration: underline;
}

/* Remove underlines from article item links on hover */
.article-item h3 a:hover {
    text-decoration: none !important;
}

a:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Form Elements with Brand Styling */
input,
select,
textarea {
    font-size: var(--font-size-base);
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--neutral-700);
    transition: all var(--transition-fast);
    min-height: 44px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--neutral-400);
}

/* Filter Links with Brand Styling */
.filter-link {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    margin: var(--space-1);
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--neutral-600);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    min-height: 44px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-link:hover {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
    background: var(--neutral-50);
    transform: translateY(-1px);
}

.filter-link.active {
    background-color: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
    box-shadow: var(--shadow-sm);
}

.filter-link.active:hover {
    background-color: var(--primary-navy-light);
    border-color: var(--primary-navy-light);
}

/* Enhanced Card Components with Brand Colors */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--neutral-200);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-gold) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
    border-radius: var(--radius-lg);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-navy);
}

.card:hover::before {
    opacity: 0.05;
}

.card:hover .card-title {
    color: var(--primary-navy);
    transform: translateX(4px);
}

.card:hover .card-text {
    color: var(--neutral-800);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: var(--space-3);
    line-height: var(--line-height-tight);
}

.card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--neutral-500);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.card-text {
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-xs);
    color: var(--neutral-500);
    margin-top: var(--space-4);
}

/* Enhanced Article Cards with Brand Colors */
.article-item,
.news-item {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
}

.article-item:hover,
.news-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-navy);
}

.article-item h3,
.news-item h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #000;
    margin-bottom: var(--space-4);
    line-height: var(--line-height-tight);
}

.article-item h3 a,
.news-item h3 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-item h3 a:hover,
.news-item h3 a:hover {
    color: #000;
}

.article-item p,
.news-item p {
    color: var(--neutral-700);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.article-meta,
.news-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-xs);
    color: var(--neutral-500);
    margin-top: var(--space-4);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .grid {
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .col-span-1,
    .col-span-2,
    .col-span-3,
    .col-span-4,
    .col-span-6,
    .col-span-8,
    .col-span-9,
    .col-span-12 {
        grid-column: span 1;
    }

    .card-body,
    .article-item,
    .news-item {
        padding: var(--space-4);
    }

    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
    }
}

/* ========================================
   ENHANCED LOGO & BRAND RECOGNITION
   ======================================== */

/* Enhanced Logo Styling - Original Layout with Gold & */
.logo h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
    line-height: 1.1;
    text-align: left;
}

.logo .graham {
    color: #1e3a8a;
    display: inline;
}

.logo .tagline {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
}

.logo .and {
    color: var(--primary-gold);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    font-style: normal;
    margin: 0 var(--space-1);
    display: inline;
}

.logo .doddsville {
    color: var(--primary-navy);
    display: inline;
}

/* Logo hover effect */
.logo:hover h1 {
    transform: scale(1.02);
    transition: transform var(--transition-fast);
}

/* Enhanced header with brand colors */
.header {
    background: linear-gradient(135deg, white 0%, var(--neutral-50) 100%);
    border-bottom: 3px solid var(--primary-gold);
    box-shadow: var(--shadow-sm);
}

/* Brand accent elements */
.brand-accent {
    color: var(--primary-gold);
    font-weight: 600;
}

.brand-primary {
    color: var(--primary-navy);
    font-weight: 600;
}

/* Enhanced navigation with brand colors */
.main-nav a {
    color: var(--primary-navy);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-gold);
    transform: translateY(-1px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width var(--transition-fast);
}

.main-nav a:hover::after {
    width: 100%;
}



/* Enhanced date/time bar with brand colors */
.date-time-bar {
    background: var(--primary-navy);
    color: white;
    padding: var(--space-2) 0;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* ========================================
   SMOOTH INTERACTIONS & MICRO-ANIMATIONS
   ======================================== */

/* Smooth Section Transitions */
.section-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-slide-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease-out;
}

.section-slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Article Cards with Micro-Animations */
.article-item,
.news-item {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1px 6px;
    margin-bottom: 10px;
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.article-item::before,
.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.6s ease;
}

.article-item:hover,
.news-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary-navy);
}

.article-item:hover::before,
.news-item:hover::before {
    left: 100%;
}

.article-item h3,
.news-item h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #000;
    margin-bottom: var(--space-4);
    line-height: var(--line-height-tight);
    transition: all var(--transition-fast);
}

.article-item:hover h3,
.news-item:hover h3 {
    transform: translateX(8px);
    color: #000;
}

.article-item h3 a,
.news-item h3 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-item h3 a:hover,
.news-item h3 a:hover {
    color: #000;
}

/* Skeleton Loading Animations */
.skeleton {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--space-2);
    border-radius: var(--radius-sm);
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-sm);
}

.skeleton-image {
    height: 200px;
    width: 100%;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md);
}

.skeleton-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

/* Enhanced Filter Links with Micro-Animations */
.filter-link {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    margin: var(--space-1);
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--neutral-600);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    min-height: 44px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.filter-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.4s ease;
}

.filter-link:hover {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
    background: var(--neutral-50);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.filter-link:hover::before {
    left: 100%;
}

.filter-link.active {
    background-color: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.filter-link.active:hover {
    background-color: var(--primary-navy-light);
    border-color: var(--primary-navy-light);
    transform: scale(1.08);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Navigation Animations */
.main-nav a {
    color: var(--primary-navy);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width var(--transition-normal);
}

.main-nav a:hover {
    color: var(--primary-gold);
    transform: translateY(-2px);
}

.main-nav a:hover::before {
    width: 100%;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--neutral-300);
    border-top: 2px solid var(--primary-navy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Image Loading */
img {
    transition: opacity var(--transition-normal);
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
}

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

/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Reduce repaints and reflows */
.article-item,
.news-item,
.card {
    contain: layout style paint;
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: no-preference) {

    .card:hover,
    .article-item:hover,
    .news-item:hover {
        will-change: transform, box-shadow;
    }
}

/* Ensure all containers are responsive */
.container,
.content-wrapper,
.article-item,
.news-item {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Accessibility Improvements */

/* Enhanced Focus States for Better Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.filter-link:focus,
.btn:focus {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip Links for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-navy);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .filter-link,
    .btn {
        border: 2px solid currentColor;
    }

    .card,
    .article-item,
    .news-item {
        border: 2px solid var(--neutral-400);
    }
}

/* Accessibility Improvements */
/* High contrast text colors for WCAG AA compliance */
body {
    color: #2c3e50;
    /* Darker text for better contrast */
    background-color: #ffffff;
}

/* Improve contrast for links - WCAG AA compliant */
a {
    color: #1e3a8a;
    /* Darker blue for better contrast */
    text-decoration: underline;
}

/* Remove underlines from article item links */
.article-item h3 a,
.article-item h3 a:hover,
.article-item h3 a:focus {
    text-decoration: none !important;
}

/* Remove underlines from mobile news links */
.news-item-mobile .news-headline a,
.news-item-mobile .news-headline a:hover,
.news-item-mobile .news-headline a:focus,
.news-headline a,
.news-headline a:hover,
.news-headline a:focus {
    text-decoration: none !important;
    color: #000 !important;
}

/* Additional mobile news link overrides */
.mobile-news-list .news-item-mobile .news-headline a,
.mobile-news-list .news-item-mobile .news-headline a:hover,
.mobile-news-list .news-item-mobile .news-headline a:focus {
    text-decoration: none !important;
    color: #000 !important;
}

a:hover,
a:focus {
    color: #1e40af;
    /* Slightly lighter on hover */
    text-decoration: underline;
}

/* Focus indicators for keyboard navigation */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Remove outline for mouse users but keep for keyboard users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Enhanced focus for interactive elements */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

/* Skip link improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2c3e50;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        color: #000000;
        background-color: #ffffff;
    }

    a {
        color: #0000ff;
    }

    .filter-link {
        border: 2px solid #000000;
    }

    .filter-link.active {
        background-color: #000000;
        color: #ffffff;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
}

/* Ensure all interactive elements are keyboard accessible */
button,
input,
select,
textarea,
a[href],
[tabindex] {
    cursor: pointer;
}

/* Improve button accessibility */
button {
    min-height: 44px;
    /* Touch target size */
    min-width: 44px;
}

/* Form accessibility */
input,
select,
textarea {
    font-size: 16px;
    /* Prevents zoom on iOS */
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Table accessibility */
table {
    border-collapse: collapse;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: left;
}

/* Ensure sufficient color contrast for all text */
.article-meta,
.news-meta {
    color: #555;
    /* Improved from #777 */
    font-size: 14px;
    /* Minimum readable size */
}

/* Fix caption text size */
.caption,
.article-meta,
.news-meta,
.video-overlay span,
.views {
    font-size: 14px !important;
    /* Override any smaller sizes */
    line-height: 1.4;
}

/* Filter button accessibility */
.filter-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border: 2px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-link:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.filter-link.active {
    background-color: #2c3e50;
    color: #ffffff;
    border-color: #2c3e50;
}

/* Ensure dropdowns are keyboard accessible */
.mega-menu-item:focus-within .mega-menu,
.mega-menu-item:focus-within .dropdown-menu {
    display: block;
}

/* ARIA live regions for dynamic content */
[aria-live] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ========================================
   MOBILE-ONLY NEWSPAPER STYLING
   ======================================== */

/* Hide mobile newspaper elements on desktop */
.mobile-only {
    display: block !important;
    /* Temporarily show for testing */
}

/* Show mobile newspaper elements only on mobile */
@media (max-width: 767px) {
    .mobile-only {
        display: block !important;
    }

    /* Hide desktop content on mobile */
    .container .content-wrapper {
        display: none;
    }

    /* Add subtle visual dividers between sections */
    .newspaper-filters::after {
        content: '';
        display: block;
        height: 1px;
        background: linear-gradient(to right, transparent, #e0e0e0, transparent);
        margin: 16px 0;
    }

    /* Enhanced section spacing */
    .news-section-title {
        margin-top: 16px;
        margin-bottom: 16px;
        color: var(--color-primary);
        font-size: 18px;
        font-weight: bold;
        text-align: center;
        border-bottom: 2px solid var(--color-primary);
        padding-bottom: 10px;
    }
}

/* AFR-inspired mobile design */
@media (max-width: 767px) {
    body {
        background: #fff;
        padding: 0;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .container {
        background: #1e3a8a;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0px;
        /* 8px margin around viewport */
        max-width: none;
        border: 1.5px solid #e8e9ea;
        position: relative;
    }

    /* Mobile: ensure news headings remain readable on the dark container background */
    .news-section-title,
    .sub-heading-title {
        color: #ffffff !important;
    }

    /* Jagged notebook border effect */
    .container::before {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        border: 1.5px solid #e8e9ea;
        border-radius: 0;
        filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 2% 2%, 98% 2%, 98% 98%, 2% 98%, 2% 2%);
    }

    .header {
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        padding: 8px 0 8px 0;
        /* Reduced padding to remove white space under logo */
        position: sticky;
        top: 0;
        z-index: 100;
        margin: 0;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        max-width: none;
        margin: 0;
    }

    .logo h1 {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 1.5rem;
        /* 24px equivalent */
        font-weight: 800;
        color: #000;
        margin: 0 0 4px 20px;
        /* Increased left margin for more space from hamburger */
        height: auto;
        /* Allow natural height */
        line-height: 1.2;
    }

    .logo .tagline {
        font-size: 0.8rem;
        color: #666;
        margin: 0 0 0 20px;
        /* Align with logo */
        font-style: italic;
        font-weight: 400;
        line-height: 1.3;
    }

    /* Hide desktop navigation on mobile */
    .desktop-only {
        display: none !important;
    }

    .secondary-nav {
        display: none !important;
    }

    /* Mobile hamburger menu - minimal design */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        gap: 10px;
        width: 44px;
        /* 44px tap target */
        height: 44px;
        /* 44px tap target */
        margin-right: 20px;
        /* Increased right margin for more space */
        align-items: center;
        justify-content: center;
    }

    .hamburger-line {
        width: 25px;
        height: 2px;
        background: #333;
        border-radius: 1px;
        display: block;
        margin: 2px auto;
        transition: all 0.3s ease;
    }
}

/* Desktop-only elements */
@media (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .mobile-drawer {
        display: none !important;
    }

    /* Desktop news section title styling */
    .news-section-title {
        color: var(--color-primary) !important;
        font-family: var(--font-primary);
        font-size: 18px;
        font-weight: 700;
        text-align: left;
        margin: 0 0 16px 0;
        border-bottom: 2px solid var(--color-primary);
        padding-bottom: 8px;
    }

    /* Desktop menu as thin 40px bar above mobile layout */
}

/* Mobile-only elements */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    /* Force hamburger menu to show on mobile */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10000 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 4px !important;
        padding: 8px !important;
    }

    /* Ensure mobile drawer is visible and functional */
    .mobile-drawer {
        display: block !important;
        visibility: visible !important;
        z-index: 10000 !important;
    }

    /* Mobile-specific date display styling */
    .date-display {
        background: #fff;
        color: #666;
        padding: 10px 16px;
        text-align: right;
        font-size: 12px;
        font-weight: 500;
        font-family: 'Georgia', 'Times New Roman', serif;
        border-bottom: none;
        margin: 0;
        letter-spacing: 0.2px;
        line-height: 1.3;
    }

    /* Override blue background for container inside date-display on mobile */
    .date-display .container {
        background: #fff !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Mobile News Loading Animation */
    .mobile-news-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        text-align: center;
    }

    .mobile-news-loading-dots {
        display: flex;
        gap: 4px;
        margin-bottom: 16px;
    }

    .mobile-news-loading-dots div {
        width: 8px;
        height: 8px;
        background: #1e3a8a;
        border-radius: 50%;
        animation: mobile-news-loading-pulse 1.4s ease-in-out infinite both;
    }

    .mobile-news-loading-dots div:nth-child(1) {
        animation-delay: -0.32s;
    }

    .mobile-news-loading-dots div:nth-child(2) {
        animation-delay: -0.16s;
    }

    .mobile-news-loading-dots div:nth-child(3) {
        animation-delay: 0s;
    }

    .mobile-news-loading-dots div:nth-child(4) {
        animation-delay: 0.16s;
    }

    @keyframes mobile-news-loading-pulse {

        0%,
        80%,
        100% {
            transform: scale(0.8);
            opacity: 0.5;
        }

        40% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .mobile-news-loading-text {
        color: #666;
        font-size: 14px;
        font-weight: 500;
    }

    /* Mobile News List Styling - Use existing news-list-mobile structure */
    .mobile-news-list {
        margin: 0;
        padding: 0;
        text-align: left;
    }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -80%;
    /* 80% of viewport width */
    width: 80%;
    /* 80% of viewport width */
    height: 100vh;
    background: #fff;
    z-index: 10000;
    /* Increased z-index to ensure it's on top */
    transition: right 0.3s ease;
    /* 0.3s animation from right */
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: block;
    /* Ensure it's always displayed */
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #1e3a8a;
    color: white;
}

.drawer-header h2 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.drawer-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-menu li {
    border-bottom: 1px solid #ffffff;
    margin-bottom: 6px;
    /* Reduced from 16px to 6px (60% reduction) */
    padding-left: 20px;
    /* 20px left padding */
}

.drawer-link {
    display: block;
    padding: 6px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.drawer-link:hover {
    background: #f8f9fa;
    color: #1e3a8a;
}

.drawer-submenu {
    position: relative;
}

.drawer-submenu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    display: none;
}

.drawer-submenu-items.show {
    display: block;
}

.drawer-submenu-items .drawer-link {
    padding-left: 40px;
    font-size: 0.9rem;
    color: #666;
}

.drawer-submenu-items {
    padding-top: 16px;
    /* Increased from 8px to 16px for More section spacing */
}

.drawer-toggle {
    position: relative;
}

.drawer-toggle::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.drawer-toggle.open::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Mobile newspaper main content */
.mobile-newspaper-main {
    padding: 0;
    max-width: none;
    margin: 0;
}

/* Mobile newspaper categories */
.newspaper-categories {
    padding: 0 16px;
    background: #fff;
}

/* AFR-inspired Market Data Bar */
.market-data-bar {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 16px;
    overflow-x: auto;
    white-space: nowrap;
    gap: 24px;
}

.market-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
}

.market-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.market-value {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 1px;
}

.market-change {
    font-size: 11px;
    font-weight: 500;
}

.market-change.positive {
    color: #16a34a;
}

.market-change.negative {
    color: #dc2626;
}

/* Filter pills for mobile (AFR-inspired) */
.filter-pills-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.filter-pill {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 8px 8px;
    /* 8px horizontal padding */
    border-radius: 6px;
    font-size: 12px;
    /* Reduced by 1px to prevent wrapping */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    /* Increased to 44px for better touch targets */
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-pill:hover {
    background: #e9ecef;
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.filter-pill.active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
}

.filter-pill.active:hover {
    background: #3b5bdb;
    border-color: #3b5bdb;
}

.newspaper-section {
    margin-bottom: 0px;
    padding: 0 16px;
    background: #fff;
}

/* Ensure proper text rendering and punctuation spacing for newspaper sections */
.newspaper-section,
.newspaper-section a,
.newspaper-section h3,
.newspaper-section p,
.newspaper-section span {
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* PROFESSIONAL SECTION HEADER STYLING */
.section-header,
.news-section-title,
.newspaper-section h2,
.category-heading,
.sub-category-title,
.feature-articles h2,
.page-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #e0e0e0;
    padding: 4px 0 4px 4px;
    background: rgba(250, 251, 252, 0.65);
    height: 32px;
    display: flex;
    align-items: center;
    margin: 0 0 1px 0;
}

/* Ensure FEATURE ARTICLES h2 isn't affected by parent padding */
#mobile-feature-articles .news-section-title {
    margin-left: -16px;
    padding-left: 20px;
    width: calc(100% + 32px);
}

.news-list-mobile,
.articles-list-mobile,
.books-list-mobile,
.buffett-list-mobile {
    margin: 0;
    padding: 0;
    text-align: left;
}

/* PROFESSIONAL NEWS ITEM STYLING */
.news-item-mobile,
.article-item-mobile,
.book-item-mobile,
.buffett-item-mobile {
    display: block;
    padding: 0px 0;
    margin: 0;
    line-height: 1.1;
    position: relative;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: all 0.2s ease;
}

/* PROFESSIONAL HOVER EFFECTS */
.news-item-mobile:hover,
.article-item-mobile:hover,
.book-item-mobile:hover,
.buffett-item-mobile:hover {
    background-color: #f8f9fa;
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transform: translateY(-1px);
}

.news-item-mobile:last-child,
.article-item-mobile:last-child,
.book-item-mobile:last-child,
.buffett-item-mobile:last-child {
    border-bottom: none;
}

/* Notebook lines - 1px solid #e0e0e0 bottom border at 24px below each headline */
.news-item-mobile::after,
.article-item-mobile::after,
.book-item-mobile::after,
.buffett-item-mobile::after {
    display: none;
}

.news-bullet {
    display: none;
    /* Hide all bullet points as requested by client */
}

/* Clickable quotes styling */
.clickable-quote {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-quote:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.quote-author {
    color: #1e3a8a;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.quote-author:hover {
    color: #d4af37;
}

/* Book sorting select */
.book-sort-select {
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    min-width: 150px;
}

.book-sort-select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

/* Quotes Page Styles */
.quotes-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quotes-page-content {
    background: white;
    border-radius: 8px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quotes-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.quotes-header h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
    flex: 1;
}

.quotes-content {
    padding: 20px;
}

.quotes-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
}

.quote-card-full {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.quote-card-full:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.quote-text h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-style: italic;
}

.quote-context {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.quote-meta .quote-author a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quote-meta .quote-author a:hover {
    color: #d4af37;
}

.quote-source {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .quote-card-full {
        padding: 15px;
    }

    .quote-text h3 {
        font-size: 16px;
    }
}

/* Book Categories Styles */
.book-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 1px;
    margin: 10px 0px;
    padding: 0 0px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.book-category-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    flex-shrink: 0;
    min-width: fit-content;
}

.book-category-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.book-category-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.book-content {
    position: relative;
}

.book-category {
    display: none;
}

.book-category.active {
    display: block;
}

/* Buffett Tabs Styles */
.buffett-tabs-mobile {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 8px 0 20px 0;
    padding: 0 1px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.buffett-tab-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    flex-shrink: 0;
    min-width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buffett-tab-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.buffett-tab-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.buffett-content-mobile {
    position: relative;
    margin-top: 8px;
}

.buffett-tab {
    display: none;
}

.buffett-tab.active {
    display: block;
}

/* Logo Styling */
.logo-image {
    max-height: 60px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}

.drawer-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Modern News Card Design */
.news-item {
    background: #fff;
    border: 1px solid #e8e9ea;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: block;
    clear: both;
    overflow: hidden;
    position: relative;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: #1e3a8a;
}

.news-source-badge {
    display: inline-block;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-header h3 {
    color: #1e3a8a;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    font-family: 'Georgia', serif;
}

.news-header h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-header h3 a:hover {
    color: #3b5bdb;
}

.news-item p {
    color: #5f6368;
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 400;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #8e9297;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.news-meta .news-category,
.news-meta .news-source,
.news-meta .news-time {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.read-more-link:hover {
    color: #3b5bdb;
    text-decoration: underline;
}

.read-more-link::after {
    content: '→';
    font-size: 12px;
    transition: transform 0.2s ease;
}

.read-more-link:hover::after {
    transform: translateX(2px);
}

/* Footer Styling */
.site-footer {
    background: var(--color-primary);
    color: #ffffff;
    padding: 50px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-company {
    text-align: center;
    margin-bottom: 30px;
}

.footer-company h3 {
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.footer-company p {
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 500;
}

.footer-address h4 {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-address p {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-disclaimer {
    background: #1e3a8a;
    /* Changed to blue */
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-top: 20px;
}

.footer-disclaimer p {
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
    text-align: left;
}

.footer-disclaimer strong {
    color: #d4af37;
    font-weight: 700;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0;
        margin-top: 40px;
    }

    .footer-content {
        gap: 25px;
        padding: 0 15px;
    }

    .footer-company {
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-company h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .footer-company p {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .footer-address h4 {
        font-size: 1rem;
        margin: 20px 0 10px 0;
    }

    .footer-address p {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .footer-disclaimer {
        padding: 20px 15px;
        margin-top: 15px;
        border-radius: 6px;
    }

    .footer-disclaimer p {
        font-size: 0.8rem;
        line-height: 1.5;
        text-align: left;
    }

    .footer-disclaimer strong {
        font-size: 0.85rem;
    }
}

.news-content {
    flex: 1;
    width: 100%;
    text-align: left;
}

/* PROFESSIONAL NEWS HEADLINE STYLING */
.news-headline {
    font-family: Georgia, serif;
    font-size: 0.96rem;
    /* 11.5pt equivalent */
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.5;
    display: inline;
    letter-spacing: -0.1px;
}

.news-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-headline a:hover {
    color: #d4af37;
    text-decoration: none;
}

/* PROFESSIONAL NEWS SOURCE STYLING */
.news-source {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    color: #666666;
    /* Grey color */
    font-weight: normal;
    font-style: normal;
    margin-left: 0.125rem;
    /* One space between headline and source */
    display: inline;
}

/* LATEST NEWS SUB-HEADINGS STYLING */
.latest-news-subheadings {
    margin: 16px 0;
}

.sub-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

.sub-heading-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    padding-left: 8px;
    transition: color 0.2s ease;
}

.sub-heading-title:hover {
    color: #f5b400;
}

.see-more-link {
    color: #999;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.see-more-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Category News Containers */
.category-news-container {
    margin-bottom: 24px;
    padding: 0 8px;
}

.category-news-container .news-item {
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.category-news-container .news-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-news-container .news-item:last-child {
    margin-bottom: 0;
}

.no-news-in-category {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px 0;
}

.no-news-in-category p {
    margin: 0;
    font-size: 14px;
}

.see-more-link {
    text-align: center;
    margin-top: 16px;
    padding: 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.see-more-btn {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 0px solid #1e3a8a;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* 4px gap to the right of link text */
}

.see-more-btn::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 9L2 5h8L6 9z' fill='%231e3a8a'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.see-more-btn.expanded::after {
    transform: rotate(180deg);
}

.see-more-btn:hover {
    background: #1e3a8a;
    color: white;
    text-decoration: none;
}

/* Market quotes See More button - matches feature-see-more design */
.see-more-quotes .see-more-btn {
    display: inline-block;
    margin: 0px auto 0 auto;
    background: transparent;
    border: none;
    color: #1e3a8a;
    font-weight: 600 !important;
    font-size: 15px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 0;
    /* Remove border radius to match feature-see-more */
    text-transform: none !important;
}

.see-more-quotes .see-more-btn:hover {
    background: transparent;
    /* Keep transparent on hover */
    color: #1e3a8a;
}

/* New Mobile Layout Styles */

/* Sub-category styles */
.sub-category {
    margin-bottom: 12px;
}

.sub-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.sub-category-title {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #4B0082;
    margin: 0;
    padding-left: 0;
    /* Left-align with headlines */
    border-left: none;
    /* Remove blue vertical line */
}

.see-more-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.see-more-link:hover {
    background-color: #f0f4ff;
    color: #1e40af;
}


.see-more-section {
    text-align: center;
    margin-top: 16px;
    padding: 12px 0;
}


.book-single-line {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    padding: 12px 0;
}

.category-heading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding-left: 8px;
    /* Align with section headers */
    border-left: none;
    /* Remove blue vertical line */
}

/* Remove borders from news category sections */
.news-category-section {
    border: none;
    border-bottom: none;
    margin-bottom: 20px;
}

.news-category-section:last-child {
    border-bottom: none;
}

/* Events Page Styling */
.events-page {
    background: #fff;
    min-height: 100vh;
    padding: 0;
}

.events-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.events-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.events-header h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
    margin-left: 20px;
}

.back-button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background: #0f2a5c;
}

.events-content {
    margin-top: 20px;
}

.event-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.location-dropdown,
.city-dropdown,
.month-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: #1e3a8a;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
    margin-right: 20px;
    flex-shrink: 0;
}

.event-date .month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-top: 5px;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 10px 0;
}

.event-location {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.event-description {
    color: #333;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-time {
    color: #666;
    font-size: 14px;
}

.event-cost {
    background: #d4af37;
    color: #1e3a8a;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
}

/* Classic Readings Section Styling */
.classic-readings-list-mobile {
    margin: 0;
    padding: 0;
}

.classic-reading-item-mobile {
    display: flex;
    align-items: flex-start;
    padding: 2px 0;
    border: none;
    background: none;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    min-height: 4px;
    margin-bottom: 0px;
    cursor: pointer;
}

.classic-reading-item-mobile:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.classic-reading-item-mobile .news-bullet {
    color: #1e3a8a;
    font-weight: 700;
    margin-right: 12px;
    font-size: 16px;
    display: inline-block;
    min-width: 28px;
    text-align: left;
    flex-shrink: 0;
}

.classic-reading-item-mobile .news-content {
    flex: 1;
    margin: 0;
}

.classic-reading-item-mobile .news-headline {
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.5;
    display: inline;
    letter-spacing: -0.1px;
}

/* Article filters for Feature Articles - single-line scrollable */
.article-filters {
    display: flex;
    flex-wrap: nowrap;
    /* Single line */
    gap: 8px;
    margin-bottom: 2px;
    padding: 0 4px;
    overflow-x: auto;
    /* Horizontal scroll */
    scrollbar-width: none;
    /* Hide scrollbar */
    -ms-overflow-style: none;
}

.article-filters::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar */
}

.article-filters .filter-pill {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 8px 8px;
    /* 8px horizontal padding */
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 44px;
    /* 44px height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Prevent text wrapping */
    flex-shrink: 0;
    /* Prevent shrinking */
}

.article-filters .filter-pill:hover {
    background: #e9ecef;
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.article-filters .filter-pill.active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
}

/* Feature Articles Button Styles */
.feature-article-tab-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 10px;
    white-space: nowrap;
    text-transform: uppercase;
}

.feature-article-tab-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #2d3748;
}

.feature-article-tab-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1a365d;
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.2);
}

.feature-article-tab-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Article slider */
.article-slider {
    position: relative;
    overflow: hidden;
}

.article-slide {
    display: none;
}

.article-slide.active {
    display: block;
}

/* Event filters */
.event-filters {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 12px;
    /* 12px vertical margin between control groups */
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #1e3a8a;
}

.location-dropdown,
.city-dropdown,
.month-dropdown {
    width: 120px;
    /* 120px wide dropdowns */
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    margin-bottom: 8px;
    display: inline-block;
}

.location-dropdown:focus,
.city-dropdown:focus,
.month-dropdown:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

/* Quote items */
.quote-item-mobile {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #ffffff;
    line-height: 1.6;
}

.quote-item-mobile .news-headline {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 4);
    /* 4 lines maximum */
}

.quote-item-mobile:last-child {
    border-bottom: none;
}

/* Value investing items */
.value-item-mobile {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #ffffff;
    line-height: 1.6;
}

.value-item-mobile:last-child {
    border-bottom: none;
}

/* Mobile Footer */
.mobile-footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 24px 16px;
    margin-top: 32px;
}

.footer-content {
    max-width: 100%;
}

.footer-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 8px;
}

.footer-text {
    margin-bottom: 20px;
}

.footer-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 12px 0;
}

/* Mobile Disclaimer Footer */
.mobile-disclaimer-footer {
    background: #1e3a8a;
    /* Changed to blue */
    color: #ffffff;
    padding: 30px 16px;
    margin-top: 0;
    border-top: 3px solid #d4af37;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.disclaimer-content {
    max-width: 100%;
}

.disclaimer-text {
    background: #1e3a8a;
    /* Changed to blue */
    padding: 20px 15px;
    border-radius: 8px;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.disclaimer-text p {
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-size: 0.85rem;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.disclaimer-text strong {
    color: #d4af37;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Mobile Disclaimer Footer Responsive Styles */
@media (max-width: 768px) {
    .mobile-disclaimer-footer {
        padding: 25px 12px;
        margin-top: 0;
    }

    .disclaimer-text {
        padding: 18px 12px;
        border-radius: 6px;
    }

    .disclaimer-text p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .disclaimer-text strong {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .mobile-disclaimer-footer {
        padding: 20px 10px;
    }

    .disclaimer-text {
        padding: 15px 10px;
        border-radius: 4px;
    }

    .disclaimer-text p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .disclaimer-text strong {
        font-size: 0.8rem;
    }
}

.company-info {
    margin-bottom: 20px;
}

.company-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.company-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.contact-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address {
    margin-bottom: 16px;
}

.address p {
    font-size: 14px;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.contact-details p {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.contact-details strong {
    color: #000;
    font-weight: 600;
}

/* News Loading Skeleton States */
.news-loading-skeleton {
    padding: 8px 0;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #ffffff 25%, #e0e0e0 50%, #ffffff 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Mobile newspaper news feed */
@media (max-width: 767px) {
    .newspaper-news-feed {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        border-top: 1px solid #e0e0e0;
        margin-top: 24px;
        padding-top: 24px;
    }

    .news-section-title {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 18px;
        font-weight: 680;
        color: #0D47A1 !important;
        /* Reverted to original purple color */
        margin: 0 0 0px 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 2px solid #e0e0e0;
        padding: 4px 0 4px 4px;
        /* 4px left padding inside bar */
        background: rgba(250, 251, 252, 0.65);
        /* Reverted to original semi-transparent background */
        height: 32px;
        /* Reduced from 36px to 32px */
        line-height: 24px;
        /* Center text vertically */
        text-align: left !important;
        /* Left align like AROUND THE WORLD */
    }

    .news-item {
        display: block;
        padding: 8px 0;
        border: none;
        background: none;
        text-decoration: none;
        color: inherit;
        transition: background-color 0.2s ease;
        min-height: 44px;
        /* Touch target */
        margin-bottom: 4px;
    }

    .news-item:hover {
        background: #f8f9fa;
        text-decoration: none;
        color: inherit;
    }

    .news-item:nth-child(even) {
        background: #fafafa;
    }

    .news-item:nth-child(even):hover {
        background: #ffffff;
    }

    .news-headline {
        font-family: Georgia, serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        color: #333;
        margin: 0;
        display: inline;
    }

    .news-meta {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 12px;
        color: #666;
        margin-bottom: 8px;
    }

    .news-excerpt {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 13px;
        line-height: 1.5;
        color: #333;
        margin-bottom: 0;
    }
}

/* Enhanced market data table styling */
@media (max-width: 767px) {
    .market-data-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .market-data-table tr:nth-child(odd) {
        background-color: #fff;
    }

    .market-data-table tr:hover {
        background-color: #e9ecef;
    }
}

/* Enhanced back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #3b5bdb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Events and Seminars Section */
.events-seminars {
    margin: 60px 0;
    padding: 40px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.events-seminars h2 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #1e3a8a;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #1e3a8a;
    color: white;
    border-radius: 8px;
    width: fit-content;
}

.event-date .month {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    font-weight: 700;
    font-size: 1.5rem;
}

.event-date .year {
    font-weight: 500;
    font-size: 0.9rem;
}

.event-content h3 {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.event-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.event-time {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.event-price {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.1rem;
}

.event-register-btn {
    display: inline-block;
    background: #1e3a8a;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.event-register-btn:hover {
    background: #3b5bdb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    color: white;
    text-decoration: none;
}

.events-footer {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    margin-top: 30px;
}

.events-footer p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.newsletter-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.newsletter-link:hover {
    text-decoration: underline;
}

/* Mobile responsiveness for Events */
@media (max-width: 768px) {
    .events-seminars {
        margin: 40px 0;
        padding: 30px 20px;
    }

    .events-seminars h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        padding: 20px;
    }

    .event-content h3 {
        font-size: 1.2rem;
    }

    .event-details {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* About Page */
.about-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow-y: auto;
}

.about-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.back-button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 20px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background: #1e40af;
}

.about-header h1 {
    font-family: Georgia, serif;
    font-size: 32px;
    color: #1e3a8a;
    margin: 0;
}

.about-content {
    padding-right: 20px;
}

.about-content h2 {
    font-family: Georgia, serif;
    font-size: 22px;
    color: #1e3a8a;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.about-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #1e3a8a;
    font-style: italic;
    color: #555;
}

.about-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.about-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Advertise Page */
.advertise-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow-y: auto;
}

.advertise-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.advertise-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.advertise-header h1 {
    font-family: Georgia, serif;
    font-size: 32px;
    color: #1e3a8a;
    margin: 0;
}

.advertise-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.advertise-content a {
    color: #1e3a8a;
    text-decoration: none;
}

.advertise-content a:hover {
    text-decoration: underline;
}

/* Top Categories - 30% wider layout */
.top-categories {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 20px;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.category-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
}

.category-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-section .category-heading {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 5px;
}

.category-section .news-items {
    min-height: 100px;
}

.category-section .news-item {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #ffffff;
}

.category-section .news-item:last-child {
    border-bottom: none;
}

.category-section .news-item h4 {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    color: #333;
}

.category-section .news-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-section .news-item a:hover {
    color: #1e3a8a;
}

/* Responsive adjustments for top categories */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        padding: 0 15px;
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .category-section {
        padding: 8px;
    }

    .category-section .category-heading {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .top-categories {
        display: none;
    }

    /* Mobile horizontal book links */
    .book-links-horizontal {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    .book-links-horizontal a {
        font-family: Georgia, serif;
        font-size: 0.96rem;
        line-height: 1.4;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        text-rendering: optimizeLegibility;
        font-kerning: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .book-links-horizontal a:not(:last-child)::after {
        content: ",";
        color: #666;
        margin: 0 2px;
    }

    /* Remove the last separator to avoid extra "|" */
    .book-links-horizontal a:last-child::after {
        content: none;
    }
}

/* Books Slider Styles */
.books-slider-container {
    position: relative;
    max-height: none;
    overflow: visible;
}

.books-slider {
    transition: transform 0.3s ease;
    max-height: none;
    overflow-y: visible;
}

/* Ensure horizontal book links work in slider */
.books-slider .book-links-horizontal {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    width: 355px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    padding-right: 16px;
    /* Fix 1: Minimum 16px right padding */
    overflow: hidden;
    /* Fix 3: hide excess lines after 10 lines */
}

.books-slider .book-links-horizontal a {
    color: #333;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.books-slider .book-links-horizontal a:hover {
    color: #0066cc;
}

.books-slider .book-links-horizontal a:not(:last-child)::after {
    content: ",";
    /* Fix 2: Comma-space padding */
    color: #666;
    margin-right: 4px;
    /* Fix 2: Right margin only */
    margin-left: 0;
}

/* Remove the last separator to avoid extra "|" */
.books-slider .book-links-horizontal a:last-child::after {
    content: none;
}

.books-slider .book-links-horizontal .see-more {
    color: #666;
    font-style: italic;
    font-size: 12px;
    font-weight: 400;
}

#philosophy-buffett-slider {
    display: block;
    width: 365px;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
}

.books-slider .wealth-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 12px;
}

.books-slider .wealth-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

/* Articles Slider Styles */
.articles-list-container {
    position: relative;
    max-height: none;
    overflow: visible;
}

.articles-slider {
    transition: transform 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}

/* Partnership Letters Page */
.partnership-letters-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow-y: auto;
}

.partnership-letters-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.partnership-letters-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.partnership-letters-header h1 {
    font-size: 32px;
    color: #1e3a8a;
    margin: 10px 0;
    font-weight: bold;
}

.page-title-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 2px;
    box-shadow: var(--shadow-md);
}

.page-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.partnership-letters-content {
    line-height: 1.7;
}

.partnership-letters-content p {
    margin-bottom: 20px;
    color: #444;
    font-size: 16px;
}

.letters-intro {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #1e3a8a;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.partnership-letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.letter-link {
    display: block;
    padding: 15px 20px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #1e3a8a;
}

.letter-link:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

@media (max-width: 768px) {
    .partnership-letters-page-content {
        padding: 15px;
    }

    .partnership-letters-header h1 {
        font-size: 24px;
    }

    .partnership-letters-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 20px;
    }

    .letter-link {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Unpublished Letters Page */
.unpublished-letters-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow-y: auto;
}

.unpublished-letters-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.unpublished-letters-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.unpublished-letters-header h1 {
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.unpublished-letters-content {
    line-height: 1.6;
    color: #333;
}

.unpublished-letters-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.letters-intro {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #1e3a8a;
}

.letters-intro p {
    margin: 0;
    font-weight: 600;
    color: #1e3a8a;
}

.unpublished-letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.letter-link {
    display: inline-block;
    padding: 15px 20px;
    background-color: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #1e3a8a;
}

.letter-link:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

@media (max-width: 768px) {
    .unpublished-letters-page-content {
        padding: 15px;
    }

    .unpublished-letters-header h1 {
        font-size: 24px;
    }

    .unpublished-letters-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 20px;
    }

    .letter-link {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Annual Letters Page */
.annual-letters-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow-y: auto;
}

.annual-letters-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.annual-letters-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.annual-letters-header h1 {
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.annual-letters-content {
    line-height: 1.6;
    color: #333;
}

.annual-letters-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.annual-letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.annual-letters-footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}

.annual-letters-footer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .annual-letters-page-content {
        padding: 15px;
    }

    .annual-letters-header h1 {
        font-size: 24px;
    }

    .annual-letters-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
        padding: 15px;
    }

    .letter-link {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Owner's Manual Page */
.owners-manual-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow-y: auto;
}

.owners-manual-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.owners-manual-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.owners-manual-header h1 {
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.owners-manual-content {
    line-height: 1.6;
    color: #333;
}

.owners-manual-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.owners-manual-content h3 {
    color: #1e3a8a;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.owners-manual-footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}

.owners-manual-footer p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.manual-download {
    text-align: center;
    margin-top: 20px;
}

.manual-download p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #1e3a8a;
}

.manual-link {
    display: inline-block;
    padding: 15px 30px;
    background-color: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #1e3a8a;
}

.manual-link:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

@media (max-width: 768px) {
    .owners-manual-page-content {
        padding: 15px;
    }

    .owners-manual-header h1 {
        font-size: 24px;
    }

    .owners-manual-content h3 {
        font-size: 18px;
    }

    .manual-link {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Superinvestors Page */
.superinvestors-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow-y: auto;
}

.superinvestors-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.superinvestors-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.superinvestors-header h1 {
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.superinvestors-content {
    line-height: 1.6;
    color: #333;
}

.superinvestors-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.superinvestors-content h3 {
    color: #1e3a8a;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.superinvestors-footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}

.superinvestors-footer p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.essay-download {
    text-align: center;
    margin-top: 20px;
}

.essay-download p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #1e3a8a;
}

.essay-link {
    display: inline-block;
    padding: 12px 20px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1e3a8a;
}

.essay-link:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

@media (max-width: 768px) {
    .superinvestors-page-content {
        padding: 15px;
    }

    .superinvestors-header h1 {
        font-size: 24px;
    }

    .superinvestors-content h3 {
        font-size: 18px;
    }

    .essay-link {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Benjamin Graham Lectures Styling */
.lecture-description {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.lecture-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.lecture-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lecture-link:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

.lecture-description-desktop {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.lecture-links-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.lecture-link-desktop {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lecture-link-desktop:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

/* Graham Lectures Page Styling */
.graham-lectures-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow-y: auto;
}

.graham-lectures-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.graham-lectures-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.graham-lectures-header h1 {
    color: #1e3a8a;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.graham-lectures-content {
    line-height: 1.6;
}

.graham-lectures-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.lecture-downloads {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.lecture-downloads h3 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 20px;
}

.lecture-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lecture-download-link {
    display: inline-block;
    padding: 12px 20px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1e3a8a;
}

.lecture-download-link:hover {
    background: white;
    color: #007bff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Graham-Newman Partnership Letters Page Styling */
.graham-newman-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow-y: auto;
}

.graham-newman-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.graham-newman-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.graham-newman-header h1 {
    color: #1e3a8a;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.graham-newman-content {
    line-height: 1.6;
}

.graham-newman-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.partnership-downloads {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.partnership-downloads h3 {
    color: #059669;
    margin-bottom: 20px;
    font-size: 20px;
}

.partnership-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.partnership-download-link {
    display: inline-block;
    padding: 12px 20px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1e3a8a;
}

.partnership-download-link:hover {
    background: white;
    color: #059669;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* All Classic Readings Page Styles */
.all-classic-readings-page {
    min-height: 100vh;
    background: #f8fafc;
    padding: 20px 0;
}

.all-classic-readings-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.all-classic-readings-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid #e5e7eb;
}

.all-classic-readings-header .back-button {
    background: #059669;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.all-classic-readings-header .back-button:hover {
    background: #047857;
}

.all-classic-readings-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.all-classic-readings-header .page-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

.all-classic-readings-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.classic-readings-grid {
    padding: 30px;
}

.classic-readings-mobile {
    display: block;
}

.classic-readings-desktop {
    display: none;
}

/* Mobile styles for the new page */
.classic-readings-mobile .classic-reading-item-mobile {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.classic-readings-mobile .classic-reading-item-mobile:hover {
    background-color: #f9fafb;
}

.classic-readings-mobile .classic-reading-item-mobile:last-child {
    border-bottom: none;
}

.classic-readings-mobile .news-bullet {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-right: 15px;
    min-width: 30px;
    flex-shrink: 0;
}

.classic-readings-mobile .news-content {
    flex: 1;
}

.classic-readings-mobile .news-headline {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    color: #1f2937;
    font-weight: 500;
}

.classic-readings-mobile .news-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.classic-readings-mobile .news-headline a:hover {
    color: #059669;
}

/* Desktop styles for the new page */
@media (min-width: 768px) {
    .classic-readings-mobile {
        display: none;
    }

    .classic-readings-desktop {
        display: block;
    }

    .classic-readings-desktop .readings-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .classic-readings-desktop .readings-list li {
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
        transition: background-color 0.2s ease;
    }

    .classic-readings-desktop .readings-list li:hover {
        background-color: #f9fafb;
        padding-left: 10px;
    }

    .classic-readings-desktop .readings-list li:last-child {
        border-bottom: none;
    }

    .classic-readings-desktop .readings-list li a {
        color: #1f2937;
        text-decoration: none;
        font-size: 1rem;
        line-height: 1.4;
        transition: color 0.2s ease;
    }

    .classic-readings-desktop .readings-list li a:hover {
        color: #059669;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .all-classic-readings-header h1 {
        font-size: 2rem;
    }

    .classic-readings-grid {
        padding: 20px;
    }

    .classic-readings-mobile .news-headline {
        font-size: 0.95rem;
    }
}

/* Desktop See More Link Styles */
.see-more-section-desktop {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.see-more-link-desktop {
    display: inline-block;
    padding: 8px 16px;
    background-color: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.see-more-link-desktop:hover {
    background-color: #1e40af !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.3);
}

/* Mobile Book Categories - Single Horizontal Line */
@media (max-width: 767px) {
    .book-categories {
        padding: 0 10px;
        margin: 15px 0;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .book-categories::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, and Opera */
    }

    .book-category-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
        /* Touch-friendly */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile Buffett Tabs - Single Horizontal Line */
@media (max-width: 767px) {
    .buffett-tabs-mobile {
        padding: 0 10px;
        margin: 5px 0 0 0;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .buffett-tabs-mobile::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, and Opera */
    }

    .buffett-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
        /* Touch-friendly */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Market Quotes Styles */
.market-quotes-container {
    margin-top: 20px;
}

.market-quote-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.market-quote-item:hover {
    background: #f1f3f4;
    border-color: #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.quote-content {
    position: relative;
}

.quote-text {
    font-family: Arial, sans-serif;
    font-size: 0.96rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
    font-style: italic;
}

.quote-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #666;
}

.quote-author {
    font-weight: 600;
    color: #1e3a8a;
}

.quote-position,
.quote-company {
    color: #495057;
}

.quote-country,
.quote-date {
    color: #6c757d;
    font-style: italic;
}

.quote-source {
    margin-top: 8px;
}

.source-link {
    font-size: 0.85rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.source-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.see-more-quotes {
    text-align: center;
    margin-top: 2px;
    padding-top: 1px;
    border-top: 1px solid #e9ecef;
}

.see-more-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.see-more-btn:hover {
    background: #152c5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

/* Book Category See More Links */
.warren-buffett-see-more-container {
    margin-bottom: 1px;
}

.warren-buffett-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.value-investing-see-more-container {
    margin-bottom: 1px;
}

.value-investing-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.share-investing-see-more-container {
    margin-bottom: 1px;
}

.share-investing-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.wealth-creation-see-more-container {
    margin-bottom: 1px;
}

.wealth-creation-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.financial-analysis-see-more-container {
    margin-bottom: 1px;
}

.financial-analysis-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.sales-marketing-see-more-container {
    margin-bottom: 1px;
}

.sales-marketing-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.self-improvement-see-more-container {
    margin-bottom: 1px;
}

.self-improvement-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.business-management-see-more-container {
    margin-bottom: 1px;
}

.business-management-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.miscellaneous-see-more-container {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 1px;
}

.miscellaneous-see-more-link {
    color: #1e3a8a;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile Market Quotes */
@media (max-width: 767px) {
    .market-quote-item {
        padding: 14px;
        margin-bottom: 12px;
    }

    .quote-text {
        font-size: 0.92rem;
    }

    .quote-meta {
        font-size: 0.8rem;
        gap: 6px;
    }
}

/* === Category Page Styles === */

/* Grid Layout for News Cards */
#category-news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* News Card Styling */
.news-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-content {
    height: 100%;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.news-source {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.news-date {
    color: #6b7280;
}

.news-title {
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.news-title a:hover {
    color: #152c6e;
    text-decoration: underline;
}

.news-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.read-more {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
}

.read-more:hover {
    text-decoration: underline;
}

/* Error State Styling (The Fix for your Screenshot) */
.error-container {
    grid-column: 1 / -1;
    /* Span full width */
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 40px auto;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-container h3 {
    color: #1e3a8a;
    /* Your Brand Blue */
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.error-container p {
    color: #666;
    margin-bottom: 24px;
}

/* Button Styling */
.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    font-size: 14px;
}

/* Primary Button (Try Again) - Blue */
.btn-primary {
    background-color: #1e3a8a;
    color: white;
}

.btn-primary:hover {
    background-color: #152c6e;
}

/* Secondary Button (Back to Home) - Gold Outline */
.btn-secondary {
    background-color: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-secondary:hover {
    background-color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .error-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        display: block;
        text-align: center;
    }
}


.category-header p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.category-news-container {
    max-width: 800px;
    margin: 0 auto;
}

.category-news-container .news-item {
    margin-bottom: 24px;
}

.category-news-container .news-meta {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-news-container .news-source {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-news-container .news-time {
    color: #6b7280;
    font-size: 0.9rem;
}

.no-news-message,
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 40px 0;
}

.no-news-message h3,
.error-message h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.no-news-message p,
.error-message p {
    color: #6b7280;
    margin-bottom: 20px;
}

.retry-btn,
.back-to-home {
    display: inline-block;
    background: #1e3a8a;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.retry-btn:hover,
.back-to-home:hover {
    background: #1e40af;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-state p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Mobile styles for category page */
@media (max-width: 768px) {
    .category-header h1 {
        font-size: 2rem;
    }

    .category-header p {
        font-size: 1rem;
    }

    .category-news-container {
        padding: 0 15px;
    }
}

/* News Aggregator Updates handled by unified header styles above */

.feature-articles h3 {
    font-size: 1.1rem !important;
}

.news-time {
    display: inline-block !important;
    color: #666;
    font-size: 12px;
}

/* Around the World spacing */
.right-column .news-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* === FORCE 2-LINE TITLES (Mobile & Desktop) === */
.news-header h3 a,
.news-headline a,
.news-item h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Adds the '...' at the end */
    line-height: 1.4em;
    /* Standard spacing */
    max-height: 2.8em;
    /* 1.4em * 2 lines = 2.8em max height */
    text-decoration: none;
}

/* Investment Analysis Dropdown Styles */
.investment-analysis-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 45%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 1000px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-top: 3px solid #1e3a8a;
    border-radius: 4px;
}

.dropdown:hover .investment-analysis-dropdown {
    display: block;
}

.investment-analysis-wrapper {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Financial Statement Analysis Dropdown Styles */
.financial-statement-analysis-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 1000px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-top: 3px solid #1e3a8a;
    border-radius: 4px;
}

.dropdown:hover .financial-statement-analysis-dropdown {
    display: block;
}

.financial-statement-analysis-wrapper {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Stock Valuation Dropdown Styles */
.stock-valuation-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 55%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 1000px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-top: 3px solid #1e3a8a;
    border-radius: 4px;
}

.dropdown:hover .stock-valuation-dropdown {
    display: block;
}

.stock-valuation-wrapper {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Common Analysis Section styles */
.analysis-section {
    min-width: 200px;
}

.analysis-section h3 {
    color: #3a2366;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #e74c3c;
    padding-bottom: 3px;
}

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

.analysis-section li {
    margin-bottom: 3px;
}

.analysis-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.analysis-section a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

@media (max-width: 1400px) {

    .investment-analysis-dropdown,
    .financial-statement-analysis-dropdown,
    .stock-valuation-dropdown {
        width: 1000px;
        max-width: 95vw;
        left: 50% !important;
    }
}

@media (max-width: 1000px) {

    .investment-analysis-dropdown,
    .financial-statement-analysis-dropdown,
    .stock-valuation-dropdown {
        width: 800px;
        max-width: 98vw;
    }
}

@media (max-width: 600px) {

    .investment-analysis-dropdown,
    .financial-statement-analysis-dropdown,
    .stock-valuation-dropdown {
        width: 100%;
        max-width: 100vw;
        left: 0 !important;
        right: 0;
        transform: none;
    }

    .investment-analysis-wrapper,
    .financial-statement-analysis-wrapper,
    .stock-valuation-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Article source inline styling */
.article-source-inline {
    color: #888888 !important;
    font-family: Arial, sans-serif !important;
    font-size: 0.85em !important;
    font-weight: normal !important;
}

/* Extra line space before recommended books */
#mobile-books {
    margin-top: 24px !important;
}

/* ===================================== */
/* HOMEPAGE DESKTOP OVERHAUL             */
/* ===================================== */

/* --- Hero Section --- */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f2557 60%, #0a1a3d 100%);
    color: #fff;
    padding: 48px 40px 40px 40px;
    margin-bottom: 0;
    border-bottom: 4px solid #d4af37;
    border-radius: 0;
}

.page-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.page-hero .hero-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    color: rgba(255,255,255,0.82);
    margin: 0;
    max-width: 700px;
    line-height: 1.6;
}

.page-hero .hero-subtitle strong {
    color: #d4af37;
    font-weight: 600;
}

/* --- Top Categories Grid --- */
.top-categories {
    background: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
    padding: 24px 0;
    margin-bottom: 0;
}

.top-categories .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.top-categories .category-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.top-categories .category-section:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.top-categories .category-section img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.top-categories .category-heading {
    font-size: 13px;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.top-categories .news-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    transition: background 0.2s ease;
}

.top-categories .news-item:hover {
    background: #e9ecef;
}

.top-categories .news-item a {
    color: #374151;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.4;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.top-categories .news-item a:hover {
    color: #1e3a8a;
}

/* --- Desktop Main Content Grid --- */
.main-content {
    background: #fff;
}

.main-content .container {
    max-width: 1280px;
}

.content-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px 24px;
}

.left-column {
    border-right: 1px solid #e9ecef;
    padding-right: 32px;
}

/* --- Latest News Section --- */
.news-section-title {
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.sub-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.sub-heading-title {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.see-more-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #d4af37 !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.see-more-link:hover {
    color: #b8941f !important;
    text-decoration: underline !important;
}

.category-news-container {
    margin-bottom: 24px;
}

.category-news-container .news-item {
    margin-bottom: 0;
    padding: 12px 14px;
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: block;
    gap: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.category-news-container .news-item:hover {
    border-left-color: #d4af37;
    background: #f8f9fa;
    transform: none;
    box-shadow: none;
}

.category-news-container .news-item + .news-item {
    border-top: 1px solid #f0f0f0;
}

.category-news-container .news-item h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.category-news-container .news-item h3 a {
    color: #1f2937;
    text-decoration: none;
}

.category-news-container .news-item h3 a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.news-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.news-meta span {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
}

.news-category {
    background: #eef2ff;
    color: #1e3a8a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-time {
    color: #9ca3af;
    background: transparent;
    padding: 0;
    font-size: 11px;
}

.read-more-link {
    display: none !important;
}

/* --- Feature Articles Section --- */
.feature-articles {
    margin-bottom: 32px;
}

.feature-articles h2 {
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.feature-articles .article-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-articles .article-item:last-child {
    border-bottom: none;
}

.feature-articles .article-item h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.feature-articles .article-item h3 a {
    color: #1f2937;
    text-decoration: none;
}

.feature-articles .article-item h3 a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.article-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    gap: 10px;
}

.article-meta .category {
    color: #1e3a8a;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.feature-articles .article-item p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    line-height: 1.5;
}

.news-loading {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.news-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #1e3a8a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

/* --- Section Breaks Between Main Sections --- */
.full-width-sections {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 32px;
    border-top: 1px solid #e9ecef;
}

/* --- Classic Readings --- */
.classic-readings-section {
    background: #f8f9fa;
    padding: 32px;
    border-radius: 0;
    margin-bottom: 0;
}

.classic-readings-section h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
}

/* --- Warren Buffett Section --- */
.buffett-section {
    background: #f8f9fa;
    padding: 32px;
    border-top: 3px solid #1e3a8a;
}

.buffett-section h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 20px;
}
/* Restored after the 16 Jul index.html overwrite (c56143a): styles for
   comma-separated Buffett terms and Recommended Books summary links */
.comma-separated-list a{display:inline!important;text-decoration:none!important;color:#1e293b!important;font-family:'Inter', sans-serif!important;font-size:14px!important;font-weight:600!important}
.comma-separated-list a:hover{color:#2563eb!important;text-decoration:none!important}
.comma-separated-list .desktop-buffett-item{font-family:'Inter', sans-serif;font-size:14px;font-weight:600;color:#1e293b}
.recommended-book-link{font-family:Georgia, serif!important;font-size:15px!important;font-weight:600!important;color:#000!important}
.recommended-book-link:hover{text-decoration:underline!important;color:#d4af37!important}

/* Tables that are wider than a phone scroll sideways inside their own box
   instead of widening the page. Wrap every content table in this. */
.table-responsive {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > table {
    min-width: 100%;
    margin: 0;
}
