/*
Theme Name: TrendiXpert
Author: Trendifacts Team
Description: Corporate Finance Authority Theme (FinXpert Clone)
Version: 1.0
*/

/* --- VARIABLES --- */
:root {
    --primary: #00235B;   /* Corporate Navy */
    --secondary: #0056b3; /* Lighter Blue */
    --accent: #E21E38;    /* Power Red */
    --text-dark: #111111;
    --text-gray: #555555;
    --bg-light: #F4F6F8;
    --white: #FFFFFF;
    --max-width: 1200px;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* --- RESET & FONTS --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, .btn, nav a {
    font-family: 'Montserrat', sans-serif;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

nav ul { display: flex; gap: 25px; list-style: none; }
nav a { font-weight: 700; font-size: 13px; color: var(--primary); text-transform: uppercase; }
nav a:hover { color: var(--accent); }

/* --- HERO SECTION (Overlap Style) --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #001233 100%);
    color: var(--white);
    padding: 120px 20px 160px; /* Extra bottom padding for the overlap */
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 35px;
}

.btn {
    background: var(--accent);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(226, 30, 56, 0.4);
}

.btn:hover { background: #b9152b; transform: translateY(-2px); }

/* --- FEATURES GRID (Floating) --- */
.features {
    max-width: var(--max-width);
    margin: -100px auto 60px; /* Pulls the grid UP over the Hero */
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 10;
}

.feature-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--accent);
    text-align: left;
}

.feature-box h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-box p { color: var(--text-gray); font-size: 15px; }

/* --- BLOG LOOP --- */
.container { max-width: var(--max-width); margin: 0 auto 80px; padding: 0 20px; }

.section-title {
    font-size: 32px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 50px; height: 4px; background: var(--accent); margin: 15px auto 0;
}

.grid-loop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border: 1px solid #eee;
    transition: 0.3s;
}

.post-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-5px); }

.post-card-content { padding: 30px; }

.meta {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.post-card h2 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--primary);
    font-weight: 700;
}

/* --- SINGLE POST --- */
.single-content {
    background: var(--white);
    padding: 60px;
    max-width: 900px;
    margin: 60px auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.single-content h1 {
    font-size: 38px;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.ad-slot {
    background: #f0f0f0;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    border: 1px dashed #ccc;
}

.entry-content p { margin-bottom: 1.5em; font-size: 18px; color: #333; }
.entry-content h2 { margin-top: 40px; margin-bottom: 20px; font-size: 28px; color: var(--primary); }

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero h2 { font-size: 32px; }
    .features { margin-top: -50px; }
    .header-inner { flex-direction: column; gap: 15px; }
    .single-content { padding: 30px 20px; }
}