
/* =========================================
   TINAFOMO - COMPLETE WEBSITE STYLESHEET
   Version 8 - Consistent Brand Red #EA0306
   ========================================= */

:root {
    --navy: #122236;
    --red: #EA0306;
    --ink: #14243b;
    --muted: #657389;
    --line: #e1e7ee;
    --pale: #f5f8fb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid #1475d4;
    outline-offset: 2px;
}

/* =========================================
   HEADER AND HORIZONTAL LOGO
   ========================================= */

.site-header {
    background: #ffffff;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.header-main {
    max-width: 1540px;
    margin: auto;
    padding: 8px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 0;
}

.brand-logo {
    display: block;
    width: 550px;
    max-width: 70%;
    flex-shrink: 1;
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Text branding fallback */

.brand {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-decoration: none;
    color: var(--navy);
}

.brand span,
.site-footer strong span {
    color: var(--red);
}

.brand-caption {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #657389;
    font-weight: 700;
}

.header-clock {
    margin-left: auto;
    color: #41516a;
    font-size: 12px;
    white-space: nowrap;
}

/* =========================================
   TOP NAVIGATION
   ========================================= */

.top-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.top-nav-inner {
    max-width: 1540px;
    margin: auto;
    padding: 0 26px;
    display: flex;
    gap: 27px;
    overflow-x: auto;
}

.top-nav a {
    white-space: nowrap;
    padding: 14px 2px;
    font-size: 13px;
    text-decoration: none;
    color: #41516a;
    font-weight: 700;
    border-bottom: 3px solid transparent;
}

.top-nav a:hover,
.top-nav a.selected {
    border-bottom-color: #2683ee;
    color: #0d4f9c;
}

/* =========================================
   MAIN WEBSITE LAYOUT
   ========================================= */

.app-shell {
    max-width: 1540px;
    margin: auto;
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    min-height: calc(100vh - 130px);
}

/* =========================================
   LEFT SIDEBAR
   ========================================= */

.side-menu {
    padding: 25px 14px;
    background: #f0f4f8;
    border-right: 1px solid var(--line);
}

.side-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #8b98a9;
    padding: 0 12px 10px;
}

.side-menu > a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 7px;
    text-decoration: none;
    color: #465771;
    font-size: 13px;
}

.side-menu > a:hover,
.side-menu > a:first-of-type {
    background: #dceaff;
    color: #0b61c5;
}

.side-menu > a span {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.side-note {
    margin-top: 35px;
    padding: 16px 12px;
    border-top: 1px solid #d7e1eb;
    font-size: 12px;
}

.side-note p {
    margin: 7px 0;
}

.side-note small {
    color: var(--muted);
    line-height: 1.5;
}

/* =========================================
   DASHBOARD
   ========================================= */

.dashboard {
    padding: 25px 24px 48px;
    min-width: 0;
}

.page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 800;
    color: var(--red);
}

.page-intro h1 {
    font-family: Georgia, serif;
    font-size: 43px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin: 4px 0;
}

.page-intro p {
    color: #5d6c80;
    margin: 0;
    font-size: 14px;
}

.search-preview {
    color: #7d899b;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px 18px;
    font-size: 12px;
    min-width: 220px;
}

.preview-banner {
    background: #fff5df;
    border-left: 4px solid #e9ad2b;
    padding: 10px 14px;
    margin: 18px 0;
    font-size: 12px;
    color: #73551c;
}

/* =========================================
   MARKET TICKER TILES
   ========================================= */

.market-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}

.market-tile {
    background: #ffffff;
    text-decoration: none;
    padding: 13px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.market-tile span {
    font-size: 11px;
    font-weight: 700;
}

.market-tile strong {
    font-size: 18px;
}

.market-tile small {
    font-size: 11px;
    color: #1267ad;
}

.market-tile:hover {
    background: #f2f7fd;
}

/* =========================================
   FEATURED STORY
   ========================================= */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(245px, 1fr);
    gap: 14px;
}

.feature-card,
.takeaways,
.data-panel,
.news-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.feature-photo {
    min-height: 310px;
    display: flex;
    align-items: end;
    background:
        linear-gradient(
            90deg,
            rgba(4, 15, 29, 0.94),
            rgba(4, 15, 29, 0.6),
            rgba(5, 22, 44, 0.18)
        ),
        radial-gradient(
            circle at 82% 32%,
            #277db1,
            #0c2745 47%,
            #08192a
        );
    position: relative;
}

.feature-photo::after {
    content: "WORLD  •  NEWS";
    position: absolute;
    right: 6%;
    top: 20%;
    font-size: clamp(24px, 4vw, 55px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(-8deg);
    pointer-events: none;
}

.feature-overlay {
    padding: 25px;
    color: #ffffff;
    max-width: 590px;
    z-index: 1;
}

.red-label {
    display: inline-block;
    background: var(--red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 9px;
    border-radius: 3px;
}

.feature-overlay h2 {
    font-family: Georgia, serif;
    font-size: clamp(26px, 3vw, 37px);
    line-height: 1.1;
    margin: 14px 0;
}

.feature-overlay p {
    font-size: 13px;
    line-height: 1.5;
    color: #e2e9f0;
    max-width: 490px;
}

.feature-overlay small {
    color: #becbd8;
}

/* =========================================
   KEY TAKEAWAYS
   ========================================= */

.takeaways {
    padding: 20px;
}

.takeaways h2 {
    font-size: 17px;
    margin: 0 0 10px;
}

.takeaways p,
.takeaways li {
    font-size: 13px;
    line-height: 1.6;
    color: #4d5c71;
}

.takeaways ul {
    padding-left: 20px;
}

.takeaways li {
    margin-bottom: 10px;
}

.takeaways small {
    font-size: 11px;
    color: #8995a5;
}

/* =========================================
   NEWS SECTION
   ========================================= */

.news-section {
    margin-top: 23px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 11px;
}

.section-title h2 {
    font-size: 22px;
    font-family: Georgia, serif;
    margin: 0;
}

.section-title span {
    font-size: 11px;
    color: #748196;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-visual {
    height: 102px;
    background: linear-gradient(140deg, #203e61, #5586a7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card:nth-child(2) .news-visual {
    background: linear-gradient(140deg, #293b5b, #9d6272);
}

.news-card:nth-child(3) .news-visual {
    background: linear-gradient(140deg, #294f59, #79a19b);
}

.news-card:nth-child(4) .news-visual {
    background: linear-gradient(140deg, #1e3856, #587bc5);
}

.news-card:nth-child(5) .news-visual {
    background: linear-gradient(140deg, #203a39, #648e76);
}

.news-visual span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.news-card-body {
    padding: 12px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.category-tag {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: var(--red);
}

.news-card h3 {
    font-size: 14px;
    line-height: 1.32;
    margin: 8px 0;
}

.news-card p {
    font-size: 12px;
    line-height: 1.5;
    color: #5c6c80;
    margin: 0 0 13px;
}

.news-meta {
    border-top: 1px solid var(--line);
    padding-top: 9px;
    margin-top: auto;
    color: #8490a0;
    font-size: 10px;
}

.news-card-body > a {
    font-size: 11px;
    color: #1267ad;
    margin-top: 8px;
}

/* =========================================
   LOWER DASHBOARD PANELS
   ========================================= */

.lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.data-panel {
    padding: 18px;
}

.data-panel .section-title h2 {
    font-size: 18px;
}

/* =========================================
   WATCHLIST TABLE
   ========================================= */

.watch-head,
.watch-table > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px;
    font-size: 12px;
}

.watch-head {
    background: #f0f4f8;
    color: #748196;
    font-size: 11px;
}

.watch-table > a {
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.watch-table > a:hover,
.resource-links a:hover {
    background: #f2f7fc;
}

.watch-table > a span {
    color: #1267ad;
}

/* =========================================
   RESOURCE LINKS
   ========================================= */

.resource-links {
    display: flex;
    flex-direction: column;
}

.resource-links a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-size: 13px;
    color: #1267ad;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: var(--navy);
    color: #c5d0df;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px max(24px, calc((100vw - 1492px) / 2));
    font-size: 12px;
}

.site-footer strong {
    color: #ffffff;
    font-size: 19px;
}

.site-footer p {
    margin: 7px 0;
}

/* =========================================
   RESPONSIVE - MEDIUM SCREENS
   ========================================= */

@media (max-width: 1250px) {
    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================
   RESPONSIVE - TABLETS
   ========================================= */

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .side-menu {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr 280px;
    }

    .dashboard {
        padding: 20px;
    }

    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */

@media (max-width: 700px) {
    .header-main {
        padding: 8px 14px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .brand-logo {
        width: 300px;
        max-width: 72%;
    }

    .brand {
        font-size: 24px;
    }

    .brand-caption {
        display: none;
    }

    .header-clock {
        width: auto;
        margin-left: auto;
        font-size: 10px;
        white-space: normal;
        text-align: right;
    }

    .top-nav-inner {
        padding: 0 14px;
        gap: 20px;
    }

    .dashboard {
        padding: 18px 14px 30px;
    }

    .page-intro {
        display: block;
    }

    .page-intro h1 {
        font-size: 35px;
    }

    .page-intro p {
        font-size: 13px;
    }

    .search-preview {
        display: none;
    }

    .market-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-tile {
        padding: 10px;
    }

    .market-tile strong {
        font-size: 16px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .feature-photo {
        min-height: 290px;
    }

    .feature-overlay {
        padding: 18px;
    }

    .feature-overlay h2 {
        font-size: 28px;
    }

    .takeaways {
        padding: 16px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lower-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .site-footer {
        display: block;
        padding: 22px 14px;
    }
}

/* =========================================
   RESPONSIVE - SMALL PHONES
   ========================================= */

@media (max-width: 440px) {
    .market-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .news-visual {
        height: 100%;
        min-height: 135px;
    }

    .news-visual span {
        font-size: 10px;
        text-align: center;
    }

    .news-card-body {
        padding: 12px;
    }

    .news-card h3 {
        font-size: 15px;
    }

    .news-card p {
        font-size: 12px;
    }

    .section-title span {
        display: none;
    }
}

/* =========================================
   TINAFOMO MOBILE HAMBURGER NAVIGATION
   ========================================= */

/* Desktop navigation */

.desktop-navigation {
    display: flex;
    align-items: center;
    gap: 27px;
}

.mobile-menu-toggle,
.mobile-navigation {
    display: none;
}

/* Mobile navigation */

@media (max-width: 700px) {

    .top-nav-inner {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 14px;
        min-height: 46px;
        overflow: visible;
    }

    .desktop-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 10px 5px;
        color: #122236;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .hamburger-icon span {
        display: block;
        width: 22px;
        height: 2px;
        background: #122236;
        border-radius: 2px;
    }

    .mobile-navigation:not([hidden]) {
        display: flex;
        flex-direction: column;
        background: #122236;
        padding: 8px 14px 14px;
    }

    .mobile-navigation a {
        display: block;
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        padding: 14px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .mobile-navigation a:last-child {
        border-bottom: none;
    }

    .mobile-navigation a:hover,
    .mobile-navigation a:focus-visible {
        background: #213c5b;
        border-radius: 5px;
    }

    /* Improve logo and date layout on phones */

    .header-main {
        align-items: center;
        gap: 12px;
    }

    .brand-logo {
        width: 300px;
        max-width: 72%;
    }

    .header-clock {
        font-size: 10px;
        line-height: 1.5;
        white-space: normal;
        text-align: right;
    }
}

/* =========================================
   IMPROVED MOBILE MENU HOVER COLORS
   ========================================= */

@media (max-width: 700px) {

    .mobile-navigation a:hover,
    .mobile-navigation a:focus-visible {
        background: #35618f;
        color: #ffffff;
        border-left: 4px solid var(--red);
        padding-left: 8px;
        border-radius: 4px;
    }

    .mobile-navigation a:active {
        background: #4679ac;
        color: #ffffff;
    }
}

/* TinaFomo - Larger logo on mobile phones */

@media (max-width: 700px) {

    .brand-logo img {
        width: 120% !important;
        max-width: none !important;
        height: auto !important;
    }

}

/* =========================================
   TINAFOMO MOBILE MENU - LEFT ALIGNMENT
   ========================================= */

@media (max-width: 768px) {

    /* Align mobile navigation to the left */
    .mobile-nav,
    .mobile-menu,
    .nav-mobile,
    .mobile-menu-container {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    /* Align hamburger button to the left */
    .menu-toggle,
    .mobile-menu-toggle,
    .hamburger,
    .nav-toggle {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

}

/* =========================================
   TINAFOMO - MOBILE STOCK TICKER
   VERSION 2 - SINGLE SCROLLABLE ROW
   ========================================= */

@media (max-width: 700px) {

    .market-strip {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;

        scroll-snap-type: x proximity;
        scrollbar-width: thin;

        gap: 1px;
        width: 100%;
        max-width: 100%;
    }

    .market-tile {
        flex: 0 0 145px !important;
        min-width: 145px !important;

        scroll-snap-align: start;

        padding: 12px !important;
    }

    .market-tile strong {
        font-size: 17px;
    }

    .market-tile span,
    .market-tile small {
        white-space: nowrap;
    }
    
    

/* =========================================
   TINAFOMO MOBILE HEADER - VERSION 3
   Stock quotes ABOVE logo
   Compact boxes
   Desktop unchanged
   ========================================= */

@media screen and (max-width: 700px) {

    /* Arrange header vertically */

    .site-header .header-main {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 8px 14px !important;
    }

    /* 1. Stock quotes at the top */

    .site-header .header-market-strip {
        order: 1 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        flex: 0 0 auto !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        gap: 6px !important;
        margin: 0 !important;
        padding: 0 0 3px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    /* Compact stock boxes */

    .site-header .header-market-link {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;

        padding: 5px 9px !important;
        gap: 1px !important;
        border-radius: 6px !important;
    }

    .site-header .header-market-name {
        font-size: 9px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .site-header .header-market-symbol {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    /* 2. TinaFomo logo below quotes */

    .site-header .brand-logo {
        order: 2 !important;
        flex: 0 0 auto !important;
        align-self: flex-start !important;
        width: 300px !important;
        max-width: 80% !important;
        margin: 0 !important;
    }

    /* Preserve your existing enlarged logo */

    .site-header .brand-logo img {
        width: 120% !important;
        max-width: none !important;
        height: auto !important;
    }

    /* 3. Date and time below logo */

    .site-header .header-clock {
        order: 3 !important;
        flex: 0 0 auto !important;
        width: 100% !important;

        margin: 0 !important;
        text-align: left !important;
        white-space: normal !important;

        font-size: 10px !important;
        line-height: 1.4 !important;
    }
}
    
    
/* =========================================
   TINAFOMO - HIDE MOBILE STOCK SCROLLBAR
   Keep horizontal swiping enabled
   ========================================= */

@media screen and (max-width: 700px) {

    .site-header .header-market-strip {
        overflow-x: auto !important;
        overflow-y: hidden !important;

        /* Firefox */
        scrollbar-width: none !important;

        /* Internet Explorer / old Edge */
        -ms-overflow-style: none;
    }

    /* Chrome, Safari, iPhone and Android */
    .site-header .header-market-strip::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

    
    

}
