/* FORTUNE TREND WP (fortunetrendwp.com) - Modern Editorial Business Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --ft-black: #0a0a0a;
    --ft-dark: #171717;
    --ft-gray-900: #1c1917;
    --ft-gray-800: #262626;
    --ft-gray-700: #404040;
    --ft-gray-600: #525252;
    --ft-gray-500: #737373;
    --ft-gray-300: #d4d4d4;
    --ft-gray-200: #e5e5e5;
    --ft-gray-100: #f5f5f5;
    --ft-gray-50: #fafafa;
    --ft-white: #ffffff;
    --ft-gold: #c59b27;
    --ft-gold-light: #fef08a;
    --ft-red: #dc2626;
    --ft-green: #16a34a;
    --ft-border: #e5e7eb;
    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background-color: var(--ft-white);
    color: var(--ft-gray-900);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
    color: var(--ft-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* TOP MARKET TICKER BAR */
.market-ticker-strip {
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #262626;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: tickerScroll 35s linear infinite;
    width: max-content;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.04em;
}

.ticker-up {
    color: #4ade80;
}

.ticker-down {
    color: #f87171;
}

/* MAIN HEADER */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--ft-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ft-black);
    padding: 6px;
    border-radius: 4px;
}

.btn-menu-toggle:hover {
    background: var(--ft-gray-100);
}

.btn-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ft-gray-700);
    padding: 6px 10px;
    border-radius: 4px;
}

.btn-search-toggle:hover {
    background: var(--ft-gray-100);
    color: var(--ft-black);
}

.header-brand {
    text-align: center;
}

.brand-masthead-img {
    height: 62px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ft-gray-600);
}

.market-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
}

.pulse-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseG 1.8s infinite;
}

@keyframes pulseG {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* NAVIGATION SUB-BAR */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    overflow-x: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-menu li a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ft-gray-800);
    white-space: nowrap;
    padding: 6px 0;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #000000;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000000;
}

/* HERO SECTION (MATCHING USER IMAGE 1) */
.hero-feature-section {
    padding: 36px 0 32px 0;
    border-bottom: 1px solid var(--ft-border);
}

.hero-feature-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.hero-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-image-wrap:hover img {
    transform: scale(1.02);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ft-gray-600);
    margin-bottom: 12px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-headline a {
    color: #000000;
}

.hero-headline a:hover {
    color: var(--ft-gold);
}

.hero-dek {
    font-size: 16px;
    color: var(--ft-gray-700);
    line-height: 1.55;
    margin-bottom: 20px;
}

.byline-bar {
    font-size: 12px;
    color: var(--ft-gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.byline-bar strong {
    color: var(--ft-black);
    font-weight: 700;
}

/* 3-COLUMN FEATURE GRID + LATEST SIDEBAR (MATCHING USER IMAGE 2) */
.main-news-section {
    padding: 36px 0 60px 0;
}

.news-layout-grid {
    display: grid;
    grid-template-columns: 3fr 1.1fr;
    gap: 44px;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    display: flex;
    flex-direction: column;
}

.feature-card-img-wrap {
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    margin-bottom: 14px;
}

.feature-card-img-wrap img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-img-wrap img {
    transform: scale(1.03);
}

.feature-card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #000000;
    margin-bottom: 10px;
}

.feature-card-title a {
    color: #000000;
}

.feature-card-title a:hover {
    color: var(--ft-gold);
}

.feature-card-dek {
    font-size: 13px;
    color: var(--ft-gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* LATEST SIDEBAR */
.sidebar-latest {
    border-left: 1px solid var(--ft-border);
    padding-left: 28px;
}

.sidebar-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    padding-bottom: 14px;
    border-bottom: 2px solid #000000;
    margin-bottom: 20px;
}

.latest-feed-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-item {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 18px;
}

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

.latest-item-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #000000;
    margin-bottom: 6px;
}

.latest-item-title a {
    color: #000000;
}

.latest-item-title a:hover {
    color: var(--ft-gold);
}

.latest-item-meta {
    font-size: 11px;
    color: var(--ft-gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ARTICLE DETAIL PAGE */
.article-detail-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

.article-header {
    margin-bottom: 28px;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin: 12px 0 18px 0;
    letter-spacing: -0.02em;
}

.article-summary-dek {
    font-size: 19px;
    line-height: 1.5;
    color: var(--ft-gray-700);
    margin-bottom: 24px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--ft-border);
    border-bottom: 1px solid var(--ft-border);
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--ft-gray-600);
}

.article-hero-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 36px;
}

.article-body-content {
    font-size: 18px;
    line-height: 1.8;
    color: #1f2937;
}

.article-body-content p {
    margin-bottom: 24px;
}

.article-body-content .lead {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.6;
    color: #0f172a;
}

.article-body-content h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    margin: 36px 0 16px 0;
    color: #000000;
}

/* SEARCH MODAL */
.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
}

.search-input {
    width: 100%;
    border: none;
    font-size: 20px;
    font-family: inherit;
    outline: none;
}

/* MOBILE DRAWER */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: #ffffff;
    z-index: 2500;
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
    padding: 24px;
    flex-direction: column;
}

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2400;
}

/* FOOTER */
.site-footer {
    background: #0a0a0a;
    color: #ffffff;
    padding: 60px 0 30px 0;
    border-top: 3px solid var(--ft-gold);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a3a3a3;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #d4d4d4;
}

.footer-links a:hover {
    color: var(--ft-gold);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #262626;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #737373;
    flex-wrap: wrap;
    gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-feature-grid {
        grid-template-columns: 1fr;
    }
    .hero-image-wrap img {
        height: 320px;
    }
    .news-layout-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-latest {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--ft-border);
        padding-top: 32px;
    }
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .header-top {
        grid-template-columns: auto 1fr;
    }
    .header-right {
        display: none;
    }
    .header-nav {
        display: none;
    }
    .brand-masthead-img {
        height: 44px;
    }
    .hero-headline {
        font-size: 26px;
    }
    .article-title {
        font-size: 28px;
    }
    .feature-cards-grid {
        grid-template-columns: 1fr;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
}
