/* ============================================
   hourlytomonthlysalary - Main Stylesheet
   Modern Salary Calculator with Teal/Purple Theme
   ============================================ */

/* CSS Variables - Modern Salary Palette */
:root {
    /* Primary Colors - Calm & Productivity */
    --primary-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    --secondary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --hero-gradient: linear-gradient(135deg, #020617 0%, #0f172a 45%, #1e293b 100%);
    
    /* Solid Colors */
    --primary-color: #0f766e;
    --primary-light: #2dd4bf;
    --primary-dark: #115e59;
    --secondary-color: #6366f1;
    --secondary-light: #a855f7;
    --accent-color: #f97316;
    --accent-dark: #c2410c;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #0ea5e9;
    
    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --bg-section: #f1f5f9;
    
    /* Text Colors */
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Footer Colors */
    --footer-bg: linear-gradient(135deg, #020617 0%, #0f172a 40%, #1e293b 100%);
    --footer-accent: #22c55e;
    --footer-highlight: #a855f7;
    
    /* Loan Type Colors */
    --home-color: #14b8a6;
    --home-gradient: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    --car-color: #6366f1;
    --car-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --personal-color: #a855f7;
    --personal-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --education-color: #f97316;
    --education-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --business-color: #22c55e;
    --business-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gold-color: #eab308;
    --gold-gradient: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 10px 30px rgba(30, 58, 138, 0.25);
    --shadow-secondary: 0 10px 30px rgba(245, 158, 11, 0.25);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-badge i {
    font-size: 12px;
}

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

.section-header.centered {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: var(--radius-xl);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.35);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--text-dark);
    box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.btn-full {
    width: 100%;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-normal);
    box-sizing: border-box;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

/* Logo */
.logo {
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.logo a,
.logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

/* Header logo image */
.logo .logo-full-img {
    height: 58px;
    width: auto;
    max-width: 280px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.logo .highlight {
    color: var(--primary-light);
}

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

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

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links > li > a i {
    font-size: 10px;
    transition: var(--transition-fast);
}

/* Dropdown */
.dropdown,
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    max-width: 90vw;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.has-dropdown .dropdown-menu {
    left: 0;
    transform: translateY(10px);
}

.has-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.has-dropdown .dropdown-menu a:hover {
    background: var(--bg-section);
    color: var(--primary-color);
}

.has-dropdown .dropdown-menu a i {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 12px;
}

.dropdown:hover .dropdown-menu,
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .dropdown-menu {
    transform: translateY(0);
}

.dropdown:hover > a i,
.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-section);
}

.dropdown-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
}

.dropdown-item div {
    display: flex;
    flex-direction: column;
}

.dropdown-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.dropdown-item small {
    font-size: 12px;
    color: var(--text-light);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Currency Selector */
.currency-selector {
    position: relative;
}

.currency-selector select {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a8a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.currency-selector select:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

.currency-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 120px;
    background: var(--hero-gradient);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.05) 100%);
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    right: 15%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: var(--text-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--secondary-light);
}

.hero h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero h1 .gradient-text {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-feature i {
    color: var(--success-color);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.hero-card-main {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-xl);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-card-icon {
    width: 56px;
    height: 56px;
    background: var(--home-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.hero-card-label .label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.hero-card-label .amount {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-card-body .emi-display {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.emi-display .emi-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.emi-display .emi-amount {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.loan-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.loan-details .detail {
    text-align: center;
}

.loan-details .detail span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.loan-details .detail strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.mini-chart {
    display: flex;
    height: 8px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
}

.chart-bar.principal {
    background: var(--primary-gradient);
}

.chart-bar.interest {
    background: var(--secondary-gradient);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 12px;
    color: var(--text-medium);
}

.chart-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-legend span:first-child i {
    color: var(--primary-color);
    font-size: 8px;
}

.chart-legend span:last-child i {
    color: var(--secondary-color);
    font-size: 8px;
}

/* Floating Cards */
.hero-card-floating {
    position: absolute;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s ease-in-out infinite;
}

.hero-card-floating i {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.hero-card-floating span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.hero-card-floating strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.card-1 {
    top: 20px;
    left: -40px;
    animation-delay: 0s;
}

.card-1 i {
    background: var(--car-gradient);
}

.card-2 {
    bottom: 40px;
    right: -30px;
    animation-delay: 2s;
}

.card-2 i {
    background: var(--personal-gradient);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

.hero-wave path {
    fill: var(--bg-white);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 60px 0;
    background: var(--bg-white);
    margin-top: -1px;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 22px;
}

.stat-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.calculator-section {
    padding: 100px 0;
    background: var(--bg-section);
}

.calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.calc-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition-fast);
}

.calc-tab:hover {
    color: var(--primary-color);
    border-color: rgba(30, 58, 138, 0.2);
}

.calc-tab.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.calc-tab i {
    font-size: 16px;
}

.calculator-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.calculator-form {
    padding: 40px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.form-section {
    margin-bottom: 32px;
}

.form-section:last-of-type {
    margin-bottom: 36px;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.form-section h3 i {
    color: var(--primary-color);
}

/* New Input Field Group Styles */
.input-field-group {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
    margin-bottom: 12px;
}

.input-field-group:hover {
    border-color: var(--primary-light);
}

.input-field-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.input-field-group .input-prefix,
.input-field-group .input-suffix {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--bg-section);
    white-space: nowrap;
}

/* Inline Currency Selector in Input Field */
.currency-input-selector {
    background: var(--bg-section);
    border-right: 2px solid #e2e8f0;
}

.currency-input-selector select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 14px 28px 14px 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e3a8a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    min-width: 70px;
}

.currency-input-selector select:hover {
    background-color: rgba(30, 58, 138, 0.05);
}

.currency-input-selector select option {
    font-weight: 600;
    padding: 10px;
}

.input-field-group input[type="number"] {
    flex: 1;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
}

.input-field-group input[type="number"]::-webkit-inner-spin-button,
.input-field-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field-group input[type="number"] {
    -moz-appearance: textfield;
}

/* Range Slider Styles */
.range-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-light) 50%, #e2e8f0 50%, #e2e8f0 100%);
    border-radius: var(--radius-full);
    outline: none;
    margin-bottom: 8px;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--bg-white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--bg-white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.slider-input {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-input input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, #e2e8f0 50%, #e2e8f0 100%);
    border-radius: var(--radius-full);
    outline: none;
}

.slider-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--bg-white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.slider-input input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.input-with-unit {
    display: flex;
    align-items: center;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 4px;
    min-width: 140px;
}

.input-with-unit .unit {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
}

.input-with-unit input {
    flex: 1;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.btn-calculate {
    margin-top: 8px;
}

/* Calculator Results */
.calculator-result {
    padding: 40px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.result-main {
    text-align: center;
    margin-bottom: 32px;
}

.result-emi {
    margin-bottom: 32px;
}

.result-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.result-value {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.result-chart {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.result-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-center span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.chart-center strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
}

.breakdown-color {
    width: 12px;
    height: 40px;
    border-radius: var(--radius-xs);
}

.breakdown-item.principal .breakdown-color {
    background: var(--primary-gradient);
}

.breakdown-item.interest .breakdown-color {
    background: var(--secondary-gradient);
}

.breakdown-info span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.breakdown-info strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.result-actions {
    display: flex;
    gap: 12px;
}

.result-actions .btn {
    flex: 1;
}

/* ============================================
   LOAN TYPES SECTION
   ============================================ */
.loan-types-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.loan-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.loan-type-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-normal);
}

.loan-type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.loan-type-card.featured {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.03) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 2px solid var(--primary-light);
}

.loan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.loan-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.loan-icon.home { background: var(--home-gradient); }
.loan-icon.car { background: var(--car-gradient); }
.loan-icon.personal { background: var(--personal-gradient); }
.loan-icon.education { background: var(--education-gradient); }
.loan-icon.business { background: var(--business-gradient); }
.loan-icon.gold { background: var(--gold-gradient); }

.loan-badge {
    padding: 6px 12px;
    background: var(--secondary-gradient);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loan-type-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.loan-type-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.loan-features {
    margin-bottom: 24px;
}

.loan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.loan-features li i {
    color: var(--success-color);
    font-size: 12px;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    padding: 100px 0;
    background: var(--bg-section);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    margin-bottom: 60px;
}

.steps-line {
    position: absolute;
    top: 80px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    z-index: 0;
}

.step-card {
    position: relative;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    z-index: 1;
    transition: var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    background: var(--primary-gradient);
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto 24px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 28px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* Formula Card */
.formula-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.formula-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    background: var(--primary-gradient);
    color: var(--text-white);
}

.formula-header i {
    font-size: 24px;
}

.formula-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.formula-content {
    padding: 40px;
}

.formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.formula-fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formula-fraction .numerator {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.formula-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-symbol {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
}

.legend-desc {
    font-size: 14px;
    color: var(--text-medium);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 0;
    background: var(--bg-white);
    overflow: hidden;
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.features-content > p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.feature-item:hover {
    background: var(--bg-section);
}

.feature-item .feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 22px;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.feature-info p {
    font-size: 14px;
    color: var(--text-medium);
}

/* Features Visual */
.features-visual {
    position: relative;
}

.feature-showcase {
    position: relative;
}

.showcase-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.showcase-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-section);
}

.showcase-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.showcase-content {
    padding: 32px;
}

.showcase-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    margin-bottom: 24px;
}

.showcase-chart .bar {
    width: 36px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    transition: var(--transition-normal);
}

.showcase-chart .bar span {
    font-size: 10px;
    color: var(--text-white);
    font-weight: 600;
}

.showcase-chart .bar:nth-child(even) {
    background: var(--secondary-gradient);
}

.showcase-stats {
    display: flex;
    justify-content: center;
}

.showcase-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.15) 100%);
    border-radius: var(--radius-full);
    color: var(--success-color);
    font-size: 14px;
    font-weight: 600;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--primary-color);
    font-size: 18px;
}

.floating-badge span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.badge-1 {
    top: 20px;
    left: -40px;
}

.badge-2 {
    bottom: 60px;
    right: -20px;
    animation-delay: 2s;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
    padding: 100px 0;
    background: var(--bg-section);
    overflow: hidden;
}

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

.content-article {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.content-article h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.content-article h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 32px 0 16px;
}

.content-article p {
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.8;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.info-card {
    padding: 24px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    text-align: center;
}

.info-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.info-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 0;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.tips-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--text-medium);
}

.tips-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 50%;
}

/* Sidebar */
.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-card h3 i {
    color: var(--primary-color);
}

.quick-links ul li {
    margin-bottom: 0;
}

.quick-links ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-medium);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-fast);
}

.quick-links ul li:last-child a {
    border-bottom: none;
}

.quick-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.quick-links ul li a i {
    font-size: 10px;
    color: var(--primary-color);
}

.tip-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-icon {
    color: var(--secondary-color);
    font-size: 14px;
    margin-top: 3px;
}

.tip-item p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.rate-item:last-of-type {
    border-bottom: none;
}

.rate-type {
    font-size: 14px;
    color: var(--text-medium);
}

.rate-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.rate-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
    background: var(--primary-gradient);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 28px 24px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--bg-section);
    overflow: hidden;
}

.cta-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl);
    padding: 60px 80px;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.cta-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

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

.cta-visual {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
}

.cta-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.cta-circle {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-dots {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 20px 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--footer-bg);
    color: var(--text-white);
}

.footer-top {
    padding: 80px 0 60px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo .logo-full-img {
    height: 56px;
    max-width: 360px;
}

.footer-logo .highlight {
    color: var(--footer-highlight);
}

.footer-brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--footer-accent);
    transform: translateY(-4px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 24px;
}

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

.footer-links ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--footer-highlight);
    padding-left: 6px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item i {
    color: var(--footer-accent);
}

.newsletter-form {
    margin-top: 24px;
}

.newsletter-form p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.newsletter-form form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 14px 18px;
    background: var(--footer-accent);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-content i.fa-heart {
    color: #ef4444;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 3;
    }
    
    .nav-links > li > a {
        padding: 10px 14px;
        font-size: 14px;
    }
    
}


@media (max-width: 992px) {
    .header {
        width: 100%;
        max-width: 100%;
    }

    .header .container {
        max-width: 100%;
        padding: 0 16px;
    }

    .header-content {
        height: 74px;
        min-height: 74px;
    }
    
    .logo .logo-full-img {
        height: 48px;
        max-width: 200px;
    }

    .nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        -webkit-tap-highlight-color: transparent;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-card-stack {
        max-width: 360px;
        margin: 60px auto 0;
    }
    
    .card-1, .card-2 {
        display: none;
    }
    
    .calculator-card {
        grid-template-columns: 1fr;
    }
    
    .calculator-form {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .loan-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-line {
        display: none;
    }
    
    .features-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .features-visual {
        order: -1;
    }
    
    .floating-badge {
        display: none;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .sidebar-card {
        margin-bottom: 0;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 48px;
    }
    
    .cta-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .logo .logo-full-img {
        height: 42px;
        max-width: 180px;
    }

    .hero {
        padding: 120px 0 100px;
    }
    
    .hero h1 {
        font-size: 34px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .calculator-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-tab {
        justify-content: center;
    }
    
    .calculator-form,
    .calculator-result {
        padding: 28px;
    }
    
    .slider-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-with-unit {
        min-width: auto;
    }
    
    .loan-types-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .formula-content {
        padding: 24px;
    }
    
    .formula {
        flex-direction: column;
        font-size: 20px;
    }
    
    .formula-legend {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .content-sidebar {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-top {
        padding: 48px 0 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo .logo-full-img {
        height: 48px;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-social {
        justify-content: center;
    }
    
    .footer-links,
    .footer-contact {
        text-align: left;
    }
    
    .footer-links ul {
        display: block;
        text-align: left;
    }
    
    .footer-contact .newsletter-form form {
        flex-direction: column;
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    
    .footer-contact .newsletter-form input {
        width: 100%;
        padding: 14px 16px;
    }
    
    .footer-contact .newsletter-form button {
        width: 100%;
        padding: 14px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header .container {
        padding: 0 12px;
    }
    
    .header-content {
        height: 66px;
        min-height: 66px;
    }
    
    .logo .logo-full-img {
        height: 36px;
        max-width: 150px;
    }

    .section-header h2 {
        font-size: 28px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-card-main {
        padding: 20px;
    }
    
    .emi-display .emi-amount {
        font-size: 28px;
    }
    
    .result-value {
        font-size: 36px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 14px;
    }
    
    .cta-card {
        padding: 32px 24px;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .content-article {
        padding: 24px;
    }
    
    .formula-header {
        padding: 18px 20px;
    }
    
    .formula-header h3 {
        font-size: 16px;
    }
    
    .footer-top {
        padding: 40px 0 32px;
    }
    
    .footer-logo .logo-full-img {
        height: 40px;
        max-width: 260px;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .footer-bottom-content {
        font-size: 12px;
    }
}

/* Mobile/Tablet Navigation - Full Screen Overlay */
@media (max-width: 992px) {
    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        bottom: 0;
        height: calc(100vh - 74px);
        background: var(--bg-white);
        padding: 20px 16px 24px;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform var(--transition-normal), visibility var(--transition-normal);
        overflow-x: hidden;
        overflow-y: auto;
        visibility: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
    }
    
    .nav.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        flex: 1;
        box-sizing: border-box;
    }
    
    .nav-links > li {
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links > li > a {
        padding: 20px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        font-size: 16px;
        width: 100%;
        min-height: 56px;
        align-items: center;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
        color: var(--text-dark);
        font-weight: 500;
    }
    
    .nav .nav-links > li > a:hover,
    .nav .nav-links > li > a.active {
        color: var(--primary-color);
        background: rgba(0, 0, 0, 0.05);
    }
    
    /* Dropdown in mobile menu: full width, visible */
    .dropdown-menu,
    .has-dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 12px 0 12px 20px;
        margin: 0 0 12px 0;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 120px;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(0, 0, 0, 0.05);
        border-radius: var(--radius-md);
        box-sizing: border-box;
    }
    
    .dropdown.active .dropdown-menu,
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .has-dropdown > a .fa-chevron-down {
        transition: transform var(--transition-fast);
    }
    
    .has-dropdown.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .dropdown-item,
    .has-dropdown .dropdown-menu a {
        padding: 18px 20px;
        min-height: 56px;
        display: flex;
        align-items: center;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        color: var(--text-dark);
    }
    
    .dropdown-item:hover,
    .has-dropdown .dropdown-menu a:hover {
        color: var(--primary-color);
        background: rgba(0, 0, 0, 0.05);
    }
    
    /* CTA button inside mobile menu */
    .nav-mobile-actions {
        display: none;
    }
    
    .nav.active .nav-mobile-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 24px 0 0;
        margin-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-sizing: border-box;
    }
    
    .nav.active .nav-mobile-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* Hide mobile-only CTA on desktop */
@media (min-width: 993px) {
    .nav-mobile-actions {
        display: none !important;
    }
}

/* Adjust mobile nav position for small phones */
@media (max-width: 480px) {
    .nav {
        top: 66px !important;
        height: calc(100vh - 66px) !important;
    }
}

/* ============================================
   Blog Section - Homepage
   ============================================ */
.blog-section {
    padding: 80px 0;
    background: var(--bg-section);
}

.blog-section .section-header {
    margin-bottom: 48px;
    text-align: center;
}

.blog-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.blog-section .section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 100%;
    margin: 0 auto;
}

.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.blog-card-home {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image-home {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.blog-card-image-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-home:hover .blog-card-image-home img {
    transform: scale(1.05);
}

.category-badge-home {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge-home.home-loan { background: var(--home-color); }
.category-badge-home.car-loan { background: var(--car-color); }
.category-badge-home.personal-loan { background: var(--personal-color); }
.category-badge-home.education-loan { background: var(--education-color); }
.category-badge-home.gold-loan { background: var(--gold-color); }
.category-badge-home.business-loan { background: var(--business-color); }

.blog-card-content-home {
    padding: 20px;
}

.blog-card-meta-home {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.blog-card-meta-home span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-content-home h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-content-home h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-content-home h3 a:hover {
    color: var(--primary-color);
}

.blog-card-content-home p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-more-home:hover {
    gap: 10px;
}

.blog-cta {
    margin-top: 32px;
}

/* Blog Section Responsive */
@media (max-width: 1200px) {
    .blog-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-section .section-header h2 {
        font-size: 2rem;
    }
    
    .blog-grid-home {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card-image-home {
        height: 180px;
    }
}
