/*
Theme Name: YourCredit Elite
Author: Assistant
Description: Ultra-modern, minimalist fintech theme. Focused on grid precision and clean UI.
Version: 3.1
Text Domain: yourcredit
*/

/* ------------------------------------------------------------------------- *
 *  VARS & FONTS
 * ------------------------------------------------------------------------- */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800&f[]=satoshi@400,500,700&display=swap');

:root {
    --bg-body: #f2f4f7;      /* Cool Light Gray */
    --bg-surface: #ffffff;
    --bg-dark: #0f1115;
    
    --txt-primary: #0f1115;
    --txt-secondary: #667085;
    --txt-inverse: #ffffff;
    
    --accent: #0055ff;       /* Electric Blue */
    --accent-dark: #0044cc;
    
    --grid-gap: 24px;
    --radius: 24px;          /* Smooth corners */
    --header-h: 80px;
    
    --font-display: 'Cabinet Grotesk', sans-serif;
    --font-body: 'Satoshi', sans-serif;
    
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.04);
    --shadow-float: 0 20px 40px rgba(0,0,0,0.08);
}

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

body {
    background-color: var(--bg-body);
    color: var(--txt-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ------------------------------------------------------------------------- *
 *  UI KIT
 * ------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--txt-primary);
    color: var(--txt-inverse);
    border: 1px solid var(--txt-primary);
}
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 85, 255, 0.2);
}

.btn-white {
    background: var(--bg-surface);
    color: var(--txt-primary);
}
.btn-white:hover {
    background: #f9fafb;
}

/* ------------------------------------------------------------------------- *
 *  FLOATING HEADER
 * ------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.nav-pill {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 100px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 1000px;
    width: 100%;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--txt-primary);
}
.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--txt-secondary);
}
.nav-links a:hover {
    color: var(--txt-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    height: 44px;
    padding: 0 24px;
    background: var(--txt-primary);
    color: white;
    border-radius: 100px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}
.header-btn:hover {
    background: var(--accent);
}

.menu-trigger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .header-right { gap: 0.5rem; }
    .header-btn { display: none; }
    .menu-trigger { display: block; }
    .site-header { top: 10px; }
}

/* Mobile Overlay Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    z-index: 10000;
    padding: 2rem;
    display: none;
    flex-direction: column;
}

.mobile-overlay.is-open {
    display: flex;
}

.mobile-overlay nav {
    display: flex;
    flex-direction: column;
}

.mobile-overlay .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-overlay .mobile-nav-list li {
    margin-bottom: 1.5rem;
}

.mobile-overlay .mobile-nav-list a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--txt-primary);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
}


/* ------------------------------------------------------------------------- *
 *  HERO
 * ------------------------------------------------------------------------- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 80px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    background: #e0e7ff;
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 24px;
    color: var(--bg-dark);
}

.hero-desc {
    font-size: 1.4rem;
    color: var(--txt-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 60px;
}

/* New Hero Image */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-float);
    background: #e0e0e0; /* Fallback */
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .hero-section { padding-top: 140px; }
    .hero-banner { height: 300px; }
}

/* ------------------------------------------------------------------------- *
 *  MODERN GRID (Bento)
 * ------------------------------------------------------------------------- */
.grid-section {
    padding-bottom: 80px;
}

.bento-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--grid-gap);
    margin-bottom: var(--grid-gap);
}

.bento-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--grid-gap);
}

.card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-height: 320px;
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

/* Card Variations */
.card-dark {
    background: var(--bg-dark);
    color: white;
}
.card-dark h3 { color: white; }
.card-dark p { opacity: 0.7; }

.card-accent {
    background: var(--accent);
    color: white;
}
.card-accent h3 { color: white; }

/* Content inside cards */
.c-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-body);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: auto;
}
.card-dark .c-icon { background: rgba(255,255,255,0.1); }
.card-accent .c-icon { background: rgba(255,255,255,0.2); }

.c-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.c-content p {
    font-size: 1.1rem;
    color: var(--txt-secondary);
    margin-bottom: 1.5rem;
}
.card-dark p, .card-accent p { color: rgba(255,255,255,0.8); }

.c-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    gap: 0.5rem;
}
.c-link span { transition: transform 0.2s; }
.card:hover .c-link span { transform: translateX(4px); }

/* Images in cards */
.card-image-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 200px;
    height: 200px;
    object-fit: contain;
    opacity: 0.1;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .bento-wrapper { grid-template-columns: 1fr; }
    .bento-row-2 { grid-template-columns: 1fr; }
    .card { min-height: 280px; }
}

/* ------------------------------------------------------------------------- *
 *  FEED GRID (Cards)
 * ------------------------------------------------------------------------- */
.feed-section {
    padding: 80px 0;
}

.feed-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.feed-title { font-size: 2.5rem; }

/* New Grid Layout for Posts */
.feed-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card-v2 {
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.post-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
}

.pc-thumb {
    height: 240px;
    position: relative;
}
.pc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pc-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.pc-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--txt-primary);
}

.pc-excerpt {
    font-size: 1rem;
    color: var(--txt-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.pc-link {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 1024px) {
    .feed-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .feed-grid-3 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------------- *
 *  PAGINATION
 * ------------------------------------------------------------------------- */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-surface);
    border-radius: 12px;
    font-weight: 700;
    color: var(--txt-primary);
    transition: 0.2s;
}

.page-numbers:hover:not(.current) {
    background: #e0e7ff;
    color: var(--accent);
    transform: translateY(-2px);
}

.page-numbers.current {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0,85,255,0.3);
}

/* ------------------------------------------------------------------------- *
 *  FOOTER
 * ------------------------------------------------------------------------- */
.simple-footer {
    text-align: center;
    padding: 80px 0 40px;
    color: var(--txt-secondary);
}

.f-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.f-copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Page Specific */
.page-content-wrapper {
    padding: 140px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}
.page-header { text-align: center; margin-bottom: 60px; }
.entry-title { font-size: 3.5rem; }
.entry-content { font-size: 1.2rem; line-height: 1.8; color: var(--txt-primary); }
.entry-content p { margin-bottom: 1.5rem; }
