/* Modern Design System to match "Sleek & Modernistic" requirement */

:root {
  /* Modern Trustworthy Palette - Indian Fintech */
  --primary-color: #0F2C59;
  /* Deep Navy Blue */
  --accent-color: #FF9933;
  /* Saffron Accent */
  --accent-hover: #E68A2E;
  /* Darker Saffron */
  --success-color: #027A48;
  /* Emerald Green */

  --text-dark: #1A202C;
  /* Dark Slate */
  --text-light: #4A5568;
  /* Cool Gray */

  --bg-white: #FFFFFF;
  --bg-light: #E6F4FF;
  /* Light Blue */

  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(15, 44, 89, 0.1);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(15 44 89 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(15 44 89 / 0.1), 0 2px 4px -2px rgb(15 44 89 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(15 44 89 / 0.1), 0 4px 6px -4px rgb(15 44 89 / 0.1);

  /* Mobile App Specifics */
  --soft-orange: #FFAB73;
  /* Peach tone */
  --soft-orange-hover: #E69A66;
  --input-radius: 12px;
  --border-subtle: #E2E8F0;
  --bg-mobile-app: #FFFFFF;
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes inputFocus {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.01);
  }

  100% {
    transform: scale(1);
  }
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  /* Dark text for contrast on gold button if needed, or keep white */
  box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 153, 51, 0.4);
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* height: var(--header-height); Removing fixed height */
  min-height: var(--header-height);
  padding: 10px 0;
  background: #0B3C5D;
  /* Deep Navy Blue */
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
  background: transparent;
  /* Align with menu color */
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: var(--bg-light);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  top: 100%;
  left: 0;
  padding: 10px 0;
  margin-top: 10px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li {
  margin-left: 0;
  display: block;
}

.dropdown-content li a {
  padding: 12px 20px;
  display: block;
  font-size: 0.95rem;
  color: #0B3C5D;
  transition: all 0.2s ease;
}

.dropdown-content li a:hover {
  background-color: rgba(11, 60, 93, 0.1);
  color: #0B3C5D;
  padding-left: 25px;
}

.nav-links a {
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px 0;
}

/* Hero Section */
/* Adjusted for taller header (approx 140px) */
.hero {
  padding: 180px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(15, 44, 89, 0.05), transparent),
    radial-gradient(circle at bottom left, rgba(255, 153, 51, 0.05), transparent);
}

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

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-light);
}

.hero-visual {
  position: relative;
}

.card-visual {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-visual h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.loan-input {
  background: var(--bg-light);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

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

.loan-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success-color);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Force 4 columns for single cohesive block */
  gap: 30px;
  align-items: stretch;
  /* Ensure equal heights */
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid for tablets/smaller laptops */
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    /* Stacked for mobile */
  }
}

.service-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(197, 160, 89, 0.1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--accent-color);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.learn-more {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Features/About */
.features {
  background: var(--primary-color);
  color: white;
}

.features .section-title h2 {
  color: white;
}

.features .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
}

.feature-item h4 {
  font-size: 1.2rem;
  margin: 16px 0;
  color: white;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.client-info h5 {
  font-size: 1rem;
  color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--bg-white);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 Equal columns to match page layout */
  gap: 30px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--primary-color);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-light);
  font-size: 0.9rem;
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    margin: 0 auto 32px;
  }

  .hero-stats {
    justify-content: center;
  }

  .nav-links {
    display: none;
    /* simple hide for V1, would want js hamburger */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =========================================
   DASHBOARD SPECIFIC STYLES (V2)
   ========================================= */

/* Main Header */
.main-header {
  background: var(--primary-color);
  /* Navy Blue from variables */
  padding: 0 40px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 60px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  font-style: italic;
}

.logo-text span {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.user-pill {
  background: white;
  border-radius: 50px;
  padding: 4px 16px 4px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.user-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.user-pill span {
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
}

.bell-icon {
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
}

/* Container */
.container-v2 {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Hero Loan Card */
.hero-loan-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid #eee;
  display: flex;
}

.loan-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 6px 20px 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.card-content {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 40px;
  justify-content: space-between;
}

.loan-info-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.loan-main-icon {
  font-size: 3.5rem;
  color: #555;
  opacity: 0.8;
}

.loan-details h4 {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.loan-details h2 {
  font-size: 2.2rem;
  color: #0F2C59;
  font-weight: 800;
}

.loan-features-center {
  display: flex;
  gap: 40px;
}

.feature-point h3 {
  color: #00C853;
  /* Green */
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-point p {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.btn-get-now {
  background: var(--accent-color);
  color: var(--primary-color);
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 153, 51, 0.2);
}

/* Other Products */
.products-section-v2 h3 {
  font-size: 1.4rem;
  color: #0F2C59;
  margin-bottom: 24px;
  font-weight: 700;
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 4px;
}

.products-grid-v2 {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
}

.product-item-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.product-circle {
  width: 70px;
  height: 70px;
  background: #FFF5EB;
  /* Light Orange Tint */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #FFE0B2;
  transition: transform 0.2s;
}

.product-item-v2:hover .product-circle {
  transform: translateY(-4px);
  background: #FFE0B2;
}

.product-circle img {
  width: 32px;
  height: 32px;
}

.product-label-v2 {
  font-weight: 600;
  color: #0F2C59;
  font-size: 0.95rem;
}

.tag-new,
.tag-instant {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #333;
  /* Dark tag */
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.tag-instant {
  background: var(--accent-color);
  color: var(--primary-color);
}

/* Loan History Table */
.history-section h3 {
  font-size: 1.4rem;
  color: #0F2C59;
  margin-bottom: 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-all-link {
  font-size: 0.9rem;
  color: var(--accent-color);
  text-decoration: none;
}

.loan-table-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #eee;
  overflow: hidden;
  margin-bottom: 50px;
}

.table-header {
  background: #FFF5EB;
  padding: 16px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 0.5fr;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.table-row {
  padding: 20px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 0.5fr;
  align-items: center;
  border-bottom: 1px solid #f9f9f9;
  color: #555;
  font-size: 0.95rem;
}

.status-disbursed {
  color: var(--success-color);
}

.status-paid {
  color: #444;
  /* Dark Grey */
}

.action-btn-arrow {
  width: 28px;
  height: 28px;
  background: #FF6B00;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.icon-action {
  color: #FF6B00;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Offers Banner */
.offers-section-v2 h3 {
  font-size: 1.4rem;
  color: #0F2C59;
  margin-bottom: 24px;
  font-weight: 700;
  border-bottom: 3px solid #FF6B00;
  display: inline-block;
  padding-bottom: 4px;
}

.offers-banner-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

/* Mobile Responsive V2 */
@media (max-width: 768px) {
  .main-header {
    padding: 0 20px;
  }

  .nav-menu {
    display: none;
    /* Hide nav links on mobile */
  }

  .card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .loan-features-center {
    flex-direction: column;
    gap: 16px;
  }

  .cta-right {
    width: 100%;
  }

  .btn-get-now {
    width: 100%;
    justify-content: center;
  }

  .products-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .table-header {
    display: none;
    /* Hide table header on mobile */
  }

  .table-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
  }

  /* Show minimal info on mobile table */
}