/*
Theme Name: Live Market Theme
Description: Live market dashboard theme for equities, commodities, currency, and metals.
Version: 1.0
Author: Developer
Text Domain: live-market-theme
*/

:root {
    --nse-blue: #003366;
    --nse-gold: #f7c548;
    --nse-dark: #071b38;
    --bg: #f4f7f9;
    --text: #17233d;
    --muted: #62718d;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nse-nav {
    background: var(--nse-blue);
    border-bottom: 4px solid var(--nse-gold);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand a {
    color: white;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    transition: background 0.25s ease;
}

.nav-links li a {
    display: block;
    padding: 18px 22px;
    color: white;
    font-weight: 700;
    font-size: 0.92rem;
}

.nav-links li:hover,
.nav-links li.active {
    background: var(--nse-gold);
}

.nav-links li.active a {
    color: var(--nse-blue);
}

.main-content,
.default-landing,
.page-entry {
    padding: 40px 0;
}

.page-title,
.default-landing h1 {
    font-size: clamp(2.3rem, 2.5vw, 3rem);
    margin-bottom: 18px;
    color: var(--nse-dark);
}

.default-landing p,
.page-entry p {
    color: var(--muted);
    max-width: 770px;
    font-size: 1rem;
}

.site-footer {
    background: var(--nse-dark);
    color: white;
    padding: 22px 0;
    margin-top: 40px;
}

.footer-inner {
    text-align: center;
}

.front-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.front-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background: var(--nse-blue);
    color: white;
    border-radius: 999px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.front-link:hover {
    background: #062d63;
}

.offer-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 48px;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
    gap: 20px;
    margin-top: 22px;
}

.offer-card {
    background: white;
    border: 1px solid rgba(23, 35, 61, 0.08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(23, 35, 61, 0.06);
}

.offer-thumb {
    min-height: 160px;
    overflow: hidden;
}

.offer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-body {
    padding: 24px;
}

.offer-type {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--nse-gold);
    color: var(--nse-dark);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.offer-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.offer-card p {
    color: var(--muted);
    margin: 0 0 12px;
}

.offer-meta {
    color: var(--nse-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

@media (max-width: 860px) {
    .offer-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .nav-links {
        flex-wrap: wrap;
    }
}
