/* =========================================
   MONEYCARME PREMIUM UI FRAMEWORK 2026
   ========================================= */
:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --hero-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Manrope', sans-serif; 
    background: #f8fafc; 
    color: var(--dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- PREMIUM STICKY HEADER --- */
header { 
    background: #fff; 
    padding: 15px 0; 
    border-bottom: 1px solid #e2e8f0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 26px; font-weight: 800; text-decoration: none; color: var(--dark); }
.logo span { color: var(--primary); }

.nav-links a { 
    margin-left: 25px; text-decoration: none; font-weight: 600; 
    color: #64748b; transition: 0.3s; 
}
.nav-links a:hover { color: var(--primary); }
.btn-blog { 
    background: var(--primary); color: white !important; 
    padding: 8px 20px; border-radius: 50px; 
}

/* --- THE PREMIUM HERO SECTION --- */
.premium-hero {
    background: var(--hero-gradient);
    padding: 80px 0 140px; 
    color: white; 
    border-radius: 0 0 80px 80px;
    position: relative;
    overflow: hidden;
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1.2; text-align: left; }
.hero-text .badge { 
    background: rgba(255,255,255,0.1); padding: 5px 15px; 
    border-radius: 50px; font-size: 12px; font-weight: 800; border: 1px solid rgba(255,255,255,0.2);
}
.hero-text h1 { font-size: 52px; font-weight: 800; line-height: 1.1; margin: 20px 0; }
.hero-text p { font-size: 18px; margin-bottom: 35px; opacity: 0.9; max-width: 500px; }

/* SEARCH BOX FIX */
.hero-search-box {
    background: white; padding: 8px; border-radius: 60px;
    display: flex; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.hero-search-box input { flex: 1; border: none; padding: 10px 20px; outline: none; border-radius: 60px; }
.hero-search-box button { background: var(--dark); color: white; border: none; padding: 12px 30px; border-radius: 50px; cursor: pointer; font-weight: 700; }

.hero-image { flex: 0.8; text-align: right; }
.hero-image img { width: 100%; max-width: 450px; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.3)); }

/* --- THE ICON GRID FIX (Bikhre hue icons ko line mein lane ke liye) --- */
.tools-wrap { margin-top: -60px; position: relative; z-index: 10; } 
.sub-cat-grid, .tools-grid, .main-cat-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 25px; 
    margin-top: 30px;
}

.sub-cat-item, .tool-card, .main-cat-card {
    background: white; padding: 35px 20px; border-radius: 25px;
    border: 1px solid #e2e8f0; text-align: center;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: 0.4s ease; box-shadow: var(--shadow);
}
.sub-cat-item:hover { transform: translateY(-10px); border-color: var(--primary); }

/* ICON SIZE CONTROL (SBI/HDFC icons ko chota aur clean karne ke liye) */
.sub-cat-item img, .sub-cat-item i {
    width: 60px !important; height: 60px !important; 
    object-fit: contain !important; margin-bottom: 15px !important;
}
.sub-cat-name { font-weight: 700; font-size: 16px; margin-top: 10px; }

/* --- CORPORATE FOOTER --- */
.main-footer { background: #0f172a; color: #94a3b8; padding: 80px 0 40px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-logo { color: #fff !important; font-size: 24px; font-weight: 800; margin-bottom: 20px; display: block; }
.footer-links li { list-style: none; margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-image { display: none; }
    .hero-text h1 { font-size: 36px; }
    .sub-cat-grid, .tools-grid { grid-template-columns: 1fr 1fr; }
}