/* ========================================
   5StarsStocks.news - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #1a365d;
    --color-primary-dark: #0f2440;
    --color-secondary: #2c5282;
    --color-accent: #3182ce;
    --color-text: #1a202c;
    --color-text-light: #4a5568;
    --color-text-lighter: #718096;
    --color-bg: #ffffff;
    --color-bg-light: #f7fafc;
    --color-bg-dark: #edf2f7;
    --color-border: #e2e8f0;
    --color-green: #38a169;
    --color-red: #e53e3e;
    --color-star: #f6ad55;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;

    --container-max: 1200px;
    --header-height: 70px;
    --ticker-height: 44px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-primary);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 2px solid var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.logo-stars {
    color: var(--color-star);
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    white-space: nowrap;
}

.logo-domain {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    padding: 8px 0;
    position: relative;
}

.nav-list a:hover {
    color: var(--color-accent);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.2s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    padding: 8px;
}

.search-btn:hover {
    color: var(--color-accent);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}

/* ========================================
   MARKET TICKER
   ======================================== */
.market-ticker {
    background-color: var(--color-primary-dark);
    color: white;
    height: var(--ticker-height);
    overflow: hidden;
    position: relative;
}

.ticker-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ticker-items {
    display: flex;
    gap: 32px;
    white-space: nowrap;
    flex-shrink: 0;
    justify-content: center;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-name {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.ticker-value {
    font-size: 13px;
    font-weight: 600;
}

.ticker-change {
    font-size: 12px;
    font-weight: 600;
}

.ticker-change.positive {
    color: #68d391;
}

.ticker-change.negative {
    color: #fc8181;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-color: var(--color-primary-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 36, 64, 0.95) 0%,
        rgba(26, 54, 93, 0.85) 50%,
        rgba(44, 82, 130, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px 20px;
    color: white;
    width: 100%;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 650px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-description {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 550px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   NEWS META
   ======================================== */
.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-lighter);
}

/* ========================================
   MARKET SNAPSHOT
   ======================================== */
.market-snapshot {
    padding: 60px 0;
    background-color: var(--color-bg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-text);
}

.view-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
}

.view-more:hover {
    color: var(--color-accent);
}

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

.snapshot-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    transition: box-shadow 0.2s ease;
}

.snapshot-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.snapshot-header {
    margin-bottom: 8px;
}

.snapshot-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
}

.snapshot-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.snapshot-change {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.snapshot-change.positive {
    color: var(--color-green);
}

.snapshot-change.negative {
    color: var(--color-red);
}

.snapshot-chart {
    height: 50px;
}

.mini-chart {
    width: 100%;
    height: 100%;
}

/* ========================================
   MARKET NEWS
   ======================================== */
.market-news {
    padding: 60px 0;
    background-color: var(--color-bg-light);
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.news-featured-image {
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 280px;
    background-color: var(--color-bg-dark);
    border-radius: 8px;
}

.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--color-accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
}

.news-featured-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--color-text);
}

.news-featured-excerpt {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.news-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

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

.placeholder-image.small {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
}

.news-item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--color-text);
}

.news-item-title:hover {
    color: var(--color-accent);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--ticker-height) + 20px);
    align-self: start;
}

.sidebar-section {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-text);
}

.most-read-list {
    counter-reset: most-read;
}

.most-read-list li {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.most-read-list li:last-child {
    border-bottom: none;
}

.most-read-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-lighter);
    min-width: 28px;
}

.most-read-list a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
}

.most-read-list a:hover {
    color: var(--color-accent);
}

/* ========================================
   STOCK ANALYSIS
   ======================================== */
.stock-analysis {
    padding: 60px 0;
    background-color: var(--color-bg);
}

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

.analysis-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.analysis-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.analysis-image .placeholder-image {
    height: 160px;
    border-radius: 0;
}

.analysis-content {
    padding: 20px;
}

.analysis-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-text);
}

.analysis-title:hover {
    color: var(--color-accent);
}

/* ========================================
   EARNINGS REPORTS
   ======================================== */
.earnings-reports {
    padding: 60px 0;
    background-color: var(--color-bg-light);
}

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

.earnings-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.earnings-logo {
    margin-bottom: 16px;
}

.placeholder-logo {
    width: 60px;
    height: 60px;
    background-color: var(--color-bg-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-light);
    margin: 0 auto;
}

.earnings-company {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.earnings-period {
    font-size: 13px;
    color: var(--color-text-lighter);
    margin-bottom: 16px;
}

.earnings-data {
    text-align: left;
}

.earnings-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.earnings-row:last-child {
    border-bottom: none;
}

.earnings-row span:first-child {
    color: var(--color-text-light);
}

.earnings-row span:last-child {
    font-weight: 600;
}

/* ========================================
   MARKET TRENDS
   ======================================== */
.market-trends {
    padding: 60px 0;
    background-color: var(--color-bg);
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.trend-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.trend-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trend-image .placeholder-image {
    height: 140px;
    border-radius: 0;
}

.trend-content {
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trend-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-text);
}

.trend-title:hover {
    color: var(--color-accent);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
    padding: 60px 0;
    background-color: var(--color-bg-light);
}

.newsletter-box {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 48px;
    text-align: center;
}

.newsletter-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.newsletter-text {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-btn {
    padding: 14px 28px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
    background-color: var(--color-primary-dark);
}

/* ========================================
   INVESTING GUIDES
   ======================================== */
.investing-guides {
    padding: 60px 0;
    background-color: var(--color-bg);
}

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

.guide-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.guide-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guide-image .placeholder-image {
    height: 160px;
    border-radius: 0;
}

.guide-content {
    padding: 20px;
}

.guide-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-text);
}

.guide-title:hover {
    color: var(--color-accent);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
    color: white;
}

.cta-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.cta-text {
    flex: 1;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.cta-description {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-box {
    width: 40px;
    height: 40px;
    font-size: 9px;
}

.footer-logo .logo-name,
.footer-logo .logo-domain {
    font-size: 16px;
}

.footer-logo .logo-stars {
    font-size: 11px;
}

.footer-description {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--color-text);
    border-color: var(--color-text);
    color: white;
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    font-size: 14px;
    color: var(--color-text-light);
}

.footer-links ul a:hover {
    color: var(--color-accent);
}

.footer-newsletter p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.footer-newsletter-form button {
    width: 44px;
    height: 44px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.footer-newsletter-form button:hover {
    background-color: var(--color-primary-dark);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    gap: 16px;
}

.copyright {
    font-size: 13px;
    color: var(--color-text-lighter);
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--color-text-lighter);
}

.footer-bottom-links a:hover {
    color: var(--color-accent);
}

/* ========================================
   CATEGORY PAGE
   ======================================== */
.category-hero {
    padding: 40px 0 60px;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-lighter);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--color-text-light);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.category-title {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 12px;
}

.category-description {
    font-size: 17px;
    color: var(--color-text-light);
    max-width: 700px;
}

.category-content {
    padding: 60px 0;
    background-color: var(--color-bg-light);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-image .placeholder-image {
    height: 200px;
    border-radius: 0;
}

.article-content {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--color-text);
}

.article-title:hover {
    color: var(--color-accent);
}

.article-excerpt {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-lighter);
    margin-bottom: 12px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

.read-more:hover {
    color: var(--color-primary);
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.topic-tag:hover {
    background-color: var(--color-text);
    border-color: var(--color-text);
    color: white;
}

.newsletter-sidebar p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-newsletter-form input {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.sidebar-newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ========================================
   SEARCH PAGE
   ======================================== */
.search-hero {
    padding: 40px 0 60px;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.search-form-large {
    max-width: 600px;
}

.search-input-large {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 18px;
    font-family: inherit;
}

.search-input-large:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-results {
    padding: 60px 0;
    background-color: var(--color-bg-light);
}

.search-results-count {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

/* ========================================
   STATIC PAGES (About, Contact, etc.)
   ======================================== */
.static-page {
    padding: 60px 0;
    background-color: var(--color-bg);
}

.static-content {
    max-width: 800px;
}

.static-content h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--color-text);
}

.static-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--color-text);
}

.static-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.static-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.static-content ul li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 8px;
    list-style: disc;
}

.static-content a {
    color: var(--color-accent);
}

.static-content a:hover {
    color: var(--color-primary);
}

.contact-form {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.submit-btn {
    padding: 14px 32px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #2b6cb0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
/* ========================================
   MOBILE MENU
   ======================================== */
.main-nav.active {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow-y: auto;
}

.main-nav.active .nav-list {
    flex-direction: column;
    padding: 8px 20px;
    gap: 0;
}

.main-nav.active .nav-list li {
    border-bottom: 1px solid var(--color-border);
}

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

.main-nav.active .nav-list a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 500;
}

.menu-btn svg {
    transition: transform 0.3s ease;
}

.menu-btn.active svg line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active svg line:nth-child(2) {
    opacity: 0;
}

.menu-btn.active svg line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }

    .main-nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .nav-list {
        gap: 24px;
    }

    .nav-list a {
        font-size: 13px;
    }

    .search-btn span {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    /* Market Snapshot */
    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Market News */
    .news-layout {
        grid-template-columns: 1fr;
    }

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

    .sidebar {
        position: static;
    }

    .most-read-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }

    /* Stock Analysis */
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Earnings */
    .earnings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Market Trends */
    .trends-grid {
        grid-template-columns: 1fr;
    }

    /* Investing Guides */
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Category Page */
    .content-layout {
        grid-template-columns: 1fr;
    }

    .article-card {
        grid-template-columns: 240px 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ========================================
   RESPONSIVE - MOBILE LANDSCAPE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --ticker-height: 40px;
    }

    .container {
        padding: 0 16px;
    }

    /* Header */
    .header-container {
        padding: 0 16px;
    }

    .logo {
        gap: 8px;
    }

    .logo-box {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 8px;
    }

    .logo-stars {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .logo-name,
    .logo-domain {
        font-size: 16px;
    }

    .search-btn span {
        display: none;
    }

    /* Ticker */
    .market-ticker {
        overflow: hidden;
    }

    .ticker-container {
        padding: 0 16px;
        gap: 16px;
    }

    .ticker-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .ticker-items {
        gap: 24px;
    }

    .ticker-name {
        font-size: 11px;
    }

    .ticker-value {
        font-size: 12px;
    }

    .ticker-change {
        font-size: 11px;
    }

    /* Hero */
    .hero {
        min-height: 360px;
    }

    .hero-content {
        padding: 48px 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 12px;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 13px;
    }

    /* Market Snapshot */
    .market-snapshot {
        padding: 40px 0;
    }

    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .snapshot-card {
        padding: 16px;
    }

    .snapshot-value {
        font-size: 22px;
    }

    .snapshot-change {
        font-size: 13px;
    }

    /* Market News */
    .market-news {
        padding: 40px 0;
    }

    .news-layout {
        gap: 32px;
    }

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

    .news-featured-image .placeholder-image {
        height: 200px;
    }

    .news-featured-title {
        font-size: 22px;
    }

    .news-featured-excerpt {
        font-size: 14px;
    }

    .news-list {
        gap: 16px;
    }

    .news-item {
        gap: 12px;
    }

    .placeholder-image.small {
        width: 100px;
        height: 70px;
    }

    .news-item-title {
        font-size: 15px;
    }

    /* Sidebar */
    .sidebar-section {
        padding: 20px;
    }

    .most-read-list {
        grid-template-columns: 1fr;
    }

    /* Stock Analysis */
    .stock-analysis {
        padding: 40px 0;
    }

    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .analysis-image .placeholder-image {
        height: 120px;
    }

    .analysis-content {
        padding: 16px;
    }

    .analysis-title {
        font-size: 14px;
    }

    /* Earnings Reports */
    .earnings-reports {
        padding: 40px 0;
    }

    .earnings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .earnings-card {
        padding: 16px;
    }

    .placeholder-logo {
        width: 48px;
        height: 48px;
        font-size: 12px;
    }

    .earnings-company {
        font-size: 14px;
    }

    .earnings-period {
        font-size: 12px;
    }

    .earnings-row {
        font-size: 13px;
    }

    /* Market Trends */
    .market-trends {
        padding: 40px 0;
    }

    .trend-card {
        grid-template-columns: 140px 1fr;
        gap: 16px;
    }

    .trend-image .placeholder-image {
        height: 120px;
    }

    .trend-content {
        padding: 16px 16px 16px 0;
    }

    .trend-title {
        font-size: 15px;
    }

    /* Newsletter */
    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-box {
        padding: 32px 20px;
    }

    .newsletter-title {
        font-size: 13px;
    }

    .newsletter-text {
        font-size: 14px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-input {
        padding: 12px 14px;
    }

    .newsletter-btn {
        padding: 12px 24px;
    }

    /* Investing Guides */
    .investing-guides {
        padding: 40px 0;
    }

    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .guide-image .placeholder-image {
        height: 120px;
    }

    .guide-content {
        padding: 16px;
    }

    .guide-title {
        font-size: 14px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 48px 0;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .cta-icon svg {
        width: 48px;
        height: 48px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-description {
        font-size: 14px;
    }

    /* Category Page */
    .category-hero {
        padding: 32px 0 40px;
    }

    .category-title {
        font-size: 32px;
    }

    .category-description {
        font-size: 15px;
    }

    .category-content {
        padding: 40px 0;
    }

    .content-layout {
        gap: 32px;
    }

    .article-card {
        grid-template-columns: 1fr;
    }

    .article-image .placeholder-image {
        height: 180px;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 18px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-heading {
        margin-bottom: 16px;
    }

    .footer-links ul li {
        margin-bottom: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 0;
    }

    .footer-bottom-links {
        gap: 16px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE PORTRAIT (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    /* Header */
    .logo {
        gap: 6px;
    }

    .logo-box {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 7px;
        border-width: 1.5px;
    }

    .logo-stars {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .logo-name,
    .logo-domain {
        font-size: 13px;
    }

    /* Ticker */
    .ticker-label {
        display: none;
    }

    .ticker-container {
        justify-content: flex-start;
    }

    .ticker-items {
        gap: 20px;
    }

    .ticker-item {
        gap: 8px;
    }

    /* Hero */
    .hero {
        min-height: 320px;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 14px 20px;
    }

    /* Snapshot */
    .snapshot-grid {
        grid-template-columns: 1fr;
    }

    .snapshot-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 16px;
    }

    .snapshot-header {
        margin-bottom: 0;
        min-width: 80px;
    }

    .snapshot-value {
        font-size: 20px;
    }

    .snapshot-chart {
        flex: 1;
        height: 40px;
    }

    /* News */
    .news-item {
        flex-direction: column;
    }

    .placeholder-image.small {
        width: 100%;
        height: 140px;
    }

    /* Analysis */
    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .analysis-image .placeholder-image {
        height: 160px;
    }

    /* Earnings */
    .earnings-grid {
        grid-template-columns: 1fr;
    }

    .earnings-data {
        font-size: 13px;
    }

    /* Trends */
    .trend-card {
        grid-template-columns: 1fr;
    }

    .trend-image .placeholder-image {
        height: 160px;
    }

    .trend-content {
        padding: 16px;
    }

    /* Guides */
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .guide-image .placeholder-image {
        height: 160px;
    }

    /* CTA */
    .cta-title {
        font-size: 22px;
    }

    .cta-title br {
        display: none;
    }

    /* Category */
    .category-title {
        font-size: 26px;
    }

    .article-card {
        gap: 0;
    }

    .article-image .placeholder-image {
        height: 160px;
    }

    /* Newsletter Sidebar */
    .sidebar-newsletter-form {
        gap: 8px;
    }

    .sidebar-newsletter-form input {
        padding: 10px 12px;
    }

    /* Footer */
    .footer-logo .logo-box {
        width: 36px;
        height: 36px;
        font-size: 7px;
    }

    .footer-logo .logo-name,
    .footer-logo .logo-domain {
        font-size: 14px;
    }

    .footer-logo .logo-stars {
        font-size: 10px;
    }

    .footer-description {
        font-size: 13px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .footer-heading {
        font-size: 11px;
    }

    .footer-links ul a {
        font-size: 13px;
    }

    .footer-newsletter-form input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .footer-newsletter-form button {
        width: 40px;
        height: 40px;
    }

    .copyright {
        font-size: 12px;
    }

    .footer-bottom-links a {
        font-size: 12px;
    }
}

/* ========================================
   RESPONSIVE - VERY SMALL SCREENS (max-width: 360px)
   ======================================== */
@media (max-width: 360px) {
    /* Header */
    .logo {
        gap: 5px;
    }

    .logo-box {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 6px;
        border-width: 1.5px;
    }

    .logo-stars {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .logo-name,
    .logo-domain {
        font-size: 12px;
    }

    .header-container {
        padding: 0 12px;
    }

    .search-btn {
        padding: 4px;
    }

    .menu-btn {
        padding: 4px;
    }

    .menu-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Ticker */
    .ticker-container {
        padding: 0 12px;
    }

    .ticker-item {
        gap: 6px;
    }

    .ticker-name {
        font-size: 10px;
    }

    .ticker-value {
        font-size: 11px;
    }

    .ticker-change {
        font-size: 10px;
    }
}
