@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@400;500;600;700;800&family=Noto+Serif+Sinhala:wght@600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Core Clean Theme Palette */
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-dark: #0f172a;
  --text-muted: #64748b;

  /* Premium Vibrant Colors */
  --royal-blue: #1e40af;
  --bright-blue: #2563eb;
  --emerald-green: #059669;
  --coral-red: #e11d48;
  --amber-gold: #d97706;

  /* Maslow Pyramid Color Gradient */
  --lvl-5: #8b5cf6;
  --lvl-4: #3b82f6;
  --lvl-3: #10b981;
  --lvl-2: #f59e0b;
  --lvl-1: #ef4444;

  /* Chart Category Colors */
  --color-needs: #2563eb;
  --color-wants: #e11d48;
  --color-savings: #059669;

  /* Modern Soft Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important; /* Strict reset for unwanted lines */
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: 'Noto Sans Sinhala', 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

.main-container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Noto Serif Sinhala', serif;
}

/* -------------------------------------------------------------------------- */
/* BAR 1: TOP RIBBON & RIBBON LINK/BUTTON                                     */
/* -------------------------------------------------------------------------- */
.top-ribbon {
  width: 100%;
  background: rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  color: #334155;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 101;
}

.ribbon-badge {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ribbon-text { 
  color: #475569; 
  font-family: 'Noto Sans Sinhala', sans-serif;
}

/* BAR 1 LINK BUTTON */
.ribbon-link, 
.top-ribbon a { 
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important; 
  padding: 5px 16px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-family: 'Noto Sans Sinhala', sans-serif !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: inline-block !important;
  border: none !important;
  outline: none !important;
}

.ribbon-link:hover, 
.top-ribbon a:hover { 
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
}

/* -------------------------------------------------------------------------- */
/* BAR 2: NAVBAR WRAPPER & NAV BUTTON                                         */
/* -------------------------------------------------------------------------- */
.navbar-wrapper {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-logo { height: 40px; width: auto; object-fit: contain; }

.nav-links a {
  color: var(--text-muted);
  margin: 0 18px;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Noto Sans Sinhala', sans-serif;
  transition: all 0.25s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--bright-blue); }

.highlight-link {
  color: var(--amber-gold) !important;
  font-weight: 700 !important;
}

/* BAR 2 NAV CTA BUTTON */
.cta-btn-nav,
.navbar-container button,
.navbar-container .cta-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  padding: 11px 26px !important;
  border: none !important;
  border-radius: 50px !important;
  font-family: 'Noto Sans Sinhala', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
}

.cta-btn-nav:hover,
.navbar-container button:hover,
.navbar-container .cta-btn:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45) !important;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.cta-btn-nav:active,
.navbar-container button:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* -------------------------------------------------------------------------- */
/* HERO SECTION & TOPIC BUTTONS                                               */
/* -------------------------------------------------------------------------- */
.hero-section {
  text-align: center;
  padding: 80px 20px 60px 20px;
  max-width: 850px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--bright-blue);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-family: 'Noto Sans Sinhala', sans-serif;
}

.hero-section h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p { 
  color: var(--text-muted); 
  font-size: 18px; 
  margin-bottom: 40px; 
  font-family: 'Noto Sans Sinhala', sans-serif;
}

.hero-actions { 
  display: flex; 
  justify-content: center; 
  align-items: center;
  gap: 18px; 
  margin-bottom: 50px; 
}

/* TOPIC BELOW MAIN HERO BUTTON ("ආරම්භ කරන්න") */
.primary-btn,
.hero-actions a.primary-btn,
.hero-actions button {
  position: relative !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  padding: 16px 42px !important;
  border-radius: 50px !important;
  font-family: 'Noto Sans Sinhala', sans-serif !important;
  font-weight: 800 !important;
  font-size: 17px !important;
  letter-spacing: 0.3px !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.38) !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

/* Shimmer Light Layer Effect */
.primary-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
  transition: 0.6s ease !important;
}

.primary-btn:hover::before {
  left: 100% !important;
}

.primary-btn:hover,
.hero-actions a.primary-btn:hover { 
  transform: translateY(-5px) scale(1.04) !important; 
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.5) !important; 
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%) !important;
}

.primary-btn:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* SECONDARY HERO BUTTON */
.secondary-btn,
.hero-actions a.secondary-btn {
  background: #ffffff !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-dark) !important;
  padding: 15px 36px !important;
  border-radius: 50px !important;
  font-family: 'Noto Sans Sinhala', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.secondary-btn:hover,
.hero-actions a.secondary-btn:hover { 
  border-color: var(--bright-blue) !important; 
  color: var(--bright-blue) !important; 
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  background: #f8fafc !important;
}

/* -------------------------------------------------------------------------- */
/* BUDDHIST SECTION GOLDEN BUTTON                                            */
/* -------------------------------------------------------------------------- */
.buddhist-btn,
a.buddhist-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  padding: 15px 36px !important;
  border-radius: 50px !important;
  font-family: 'Noto Sans Sinhala', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: hidden !important;
  border: none !important;
}

.buddhist-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
  transition: 0.6s ease !important;
}

.buddhist-btn:hover::before {
  left: 100% !important;
}

.buddhist-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #92400e 100%) !important;
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.5) !important;
}

/* -------------------------------------------------------------------------- */
/* REST OF THE CSS & LAYOUT STYLING                                           */
/* -------------------------------------------------------------------------- */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}

.glow-1 { top: -80px; left: 10%; background: var(--bright-blue); }
.glow-2 { top: 380px; right: 10%; background: var(--amber-gold); }

.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px auto;
}

.mini-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--bright-blue);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--emerald-green); }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.stat-divider { width: 1px; height: 30px; background: var(--border-color); }

.maslow-container { padding: 80px 0; border-bottom: 1px solid var(--border-color); }
.maslow-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 35px; align-items: start; }
.maslow-content-left { display: flex; flex-direction: column; gap: 20px; }

.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 5px solid transparent;
  box-shadow: var(--shadow-sm);
}

.step-card:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.step-card[data-step="5"] { border-left-color: var(--lvl-5); }
.step-card[data-step="4"] { border-left-color: var(--lvl-4); }
.step-card[data-step="3"] { border-left-color: var(--lvl-3); }
.step-card[data-step="2"] { border-left-color: var(--lvl-2); }
.step-card[data-step="1"] { border-left-color: var(--lvl-1); }

.step-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.step-5-bg { background: var(--lvl-5); }
.step-4-bg { background: var(--lvl-4); }
.step-3-bg { background: var(--lvl-3); }
.step-2-bg { background: var(--lvl-2); }
.step-1-bg { background: var(--lvl-1); }

.step-info h3 { font-size: 18px; color: var(--text-dark); margin-bottom: 6px; }
.sub-title { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.step-info p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }

.step-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-dark);
}

.maslow-visual-right { display: flex; flex-direction: column; gap: 25px; position: -webkit-sticky; position: sticky; top: 90px; }
.pyramid-wrapper { text-align: center; padding: 24px; background: #ffffff; border: 1px solid var(--border-color); border-radius: 20px; box-shadow: var(--shadow-sm); }
.pyramid-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.pyramid-container { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }

.p-level {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
}

.p-level:hover { transform: scale(1.03); filter: brightness(1.08); }
.p-lvl-5 { width: 35%; background: var(--lvl-5); }
.p-lvl-4 { width: 50%; background: var(--lvl-4); }
.p-lvl-3 { width: 65%; background: var(--lvl-3); }
.p-lvl-2 { width: 80%; background: var(--lvl-2); }
.p-lvl-1 { width: 95%; background: var(--lvl-1); }

.financial-takeaway-card {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--amber-gold);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.takeaway-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.light-icon { font-size: 24px; }
.takeaway-header h4 { font-size: 16px; color: var(--text-dark); font-weight: 700; line-height: 1.4; }
.takeaway-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.takeaway-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-muted); }

.t-badge {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.b-1 { background: var(--lvl-1); }
.b-2 { background: var(--lvl-2); }
.b-3 { background: var(--lvl-3); }
.b-4 { background: var(--lvl-4); }
.b-5 { background: var(--lvl-5); }

.calc-container { padding: 80px 0 60px 0; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.input-card h3, .output-card h3 { margin-bottom: 20px; font-size: 20px; color: var(--text-dark); }
.input-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 14px; font-weight: 600; }

.input-group input {
  width: 100%;
  padding: 14px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  outline: none;
  transition: all 0.25s ease;
}

.input-group input:focus { 
  border-color: var(--bright-blue); 
  background: #ffffff; 
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); 
}

.slider-group { margin-bottom: 20px; }
.slider-header { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--bright-blue); cursor: pointer; }

.chart-box { max-width: 240px; margin: 0 auto 25px auto; }
.breakdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.b-item { 
  background: #f8fafc; 
  padding: 14px 10px; 
  border-radius: 12px; 
  text-align: center; 
  border: 1px solid var(--border-color); 
}

.needs-border { border-top: 4px solid var(--color-needs); }
.wants-border { border-top: 4px solid var(--color-wants); }
.savings-border { border-top: 4px solid var(--color-savings); }

.b-title { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.b-val { font-size: 13px; font-weight: 800; color: var(--text-dark); }

.knowledge-container { padding: 60px 0 100px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.pro-card { 
  position: relative; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.pro-card:hover { 
  transform: translateY(-6px); 
  border-color: var(--bright-blue); 
  box-shadow: var(--shadow-md); 
}

.highlight-card { 
  border: 2px solid var(--bright-blue); 
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%); 
}

.card-tag { font-size: 11px; font-weight: 800; color: #7c3aed; margin-bottom: 12px; letter-spacing: 1px; }
.card-tag.gold { color: var(--amber-gold); }
.pro-card h3 { font-size: 19px; margin-bottom: 12px; color: var(--text-dark); font-weight: 700; }
.pro-card p { font-size: 14px; color: var(--text-muted); }

.buddhist-teaser-section { padding: 60px 0; }
.buddhist-teaser-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
  border: 1px solid #fef3c7;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.buddhist-teaser-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.buddha-teaser-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.12);
}

.gold-tag { background: rgba(217, 119, 6, 0.08); color: var(--amber-gold); }
.buddhist-excerpt { font-size: 16px; color: var(--text-muted); margin: 15px 0 20px 0; line-height: 1.8; }
.buddhist-highlights { display: flex; flex-direction: column; gap: 8px; margin-bottom: 25px; font-size: 14px; color: var(--text-dark); }

.buddhism-page-body { background-color: #fffdfa; }
.buddhism-hero { padding: 60px 0; }
.buddhism-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.buddha-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.15);
  border: 4px solid #ffffff;
}

.buddhism-section { padding: 50px 0; }
.bhoga-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bhoga-card {
  text-align: center;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bhoga-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.bhoga-percent { font-size: 24px; font-weight: 800; color: var(--amber-gold); margin-bottom: 10px; }
.border-part-1 { border-top: 5px solid #2563eb; }
.border-part-2 { border-top: 5px solid #059669; }
.border-part-3 { border-top: 5px solid #e11d48; }

.sukha-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sukha-card { padding: 24px; background: #ffffff; border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow-sm); }
.sukha-icon { font-size: 30px; margin-bottom: 10px; }
.highlight-sukha { border: 2px solid var(--amber-gold); background: #fffdf5; }

.vanijja-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; }
.vanijja-card { background: #ffffff; padding: 18px; border-radius: 12px; border: 1px solid #fde68a; font-size: 14px; box-shadow: var(--shadow-sm); }
.content-box { padding: 30px; }
.gold-text-heading { color: #b45309; margin-bottom: 15px; }
.note-para { margin-top: 15px; font-size: 15px; color: #334155; }
.sub-hero-note { margin-top: 15px; font-size: 14px; color: #b45309; background: #fffdf5; padding: 12px 16px; border-left: 4px solid var(--amber-gold); border-radius: 8px; }
.modern-insight-box { margin-top: 25px; padding: 20px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; color: #166534; }
.highlight-invest-card { position: relative; border: 2px solid #059669 !important; background: #f0fdf4 !important; }
.badge-reinvest { position: absolute; top: -12px; right: 20px; background: #059669; color: #ffffff; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 20px; }

.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.balance-card { padding: 20px; background: #ffffff; border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow-sm); }
.warning-border { border-left: 4px solid #ef4444; }
.quote-box { margin-top: 20px; padding: 18px; text-align: center; background: #fffdf5; border: 1px solid #fef3c7; border-radius: 12px; font-size: 16px; color: var(--text-dark); }

.apaya-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.apaya-card { padding: 18px; font-weight: 600; color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; display: flex; align-items: center; gap: 10px; }

.summary-section { padding: 40px 0 80px 0; }
.summary-card { padding: 30px; background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%); border: 1px solid #fde68a; border-radius: 20px; box-shadow: var(--shadow-sm); }
.summary-card h3 { color: #b45309; margin-bottom: 10px; }

/* -------------------------------------------------------------------------- */
/* RESPONSIVE MEDIA QUERIES                                                   */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .maslow-grid { grid-template-columns: 1fr; }
  .maslow-visual-right { position: static; }
  .dashboard-grid, .cards-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 32px; }
  .top-ribbon { flex-direction: column; gap: 6px; font-size: 12px; }
  .buddhist-teaser-grid, .buddhism-hero-grid, .bhoga-grid, .sukha-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .balance-grid, .apaya-grid { grid-template-columns: 1fr; }
  .navbar-container { flex-direction: column; gap: 12px; }
  .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .nav-links a { margin: 0 8px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .primary-btn, .secondary-btn { width: 100%; text-align: center; }
}


/* ==========================================
   Passive Income Calculator - Standalone CSS
   ========================================== */

/* Input Card Styling */
.calc-input-wrapper {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 22px;
  margin-top: 18px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.calc-input-wrapper label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.input-group {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.input-group:focus-within {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  background: #ffffff;
}

.currency-prefix {
  font-weight: 700;
  color: #64748b;
  margin-right: 10px;
  font-size: 1.1rem;
}

.input-group input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  font-family: inherit;
}

/* Hide Spinners/Arrows from Number Input */
.input-group input[type=number]::-webkit-inner-spin-button, 
.input-group input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.input-group input[type=number] {
  -moz-appearance: textfield;
}

/* Results Display Grid */
.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.calc-result-box {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.calc-result-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.highlight-emerald {
  border-top: 4px solid #059669 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%) !important;
}

.highlight-indigo {
  border-top: 4px solid #4f46e5 !important;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
}

.res-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.res-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  word-break: break-all;
}

.glowing-emerald {
  color: #059669;
}

.glowing-indigo {
  color: #4f46e5;
}

.res-sub {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.font-muted {
  color: #64748b;
}


/* ==========================================
   ALIGNMENT, CENTERING & SIZING FIXES
   ========================================== */

/* Main Container Lock & Centering */
.card-section {
  max-width: 860px;       /* Calculator එකේ උපරිම පලල පාලනය කරයි */
  margin: 40px auto;      /* පිටුවේ කෙළින්ම මැදට ගෙන එයි (Center Alignment) */
  padding: 0 16px;
  width: 100%;
}

/* Header Section Alignment */
.section-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

/* Hero Content Card Inner Spacing */
.content-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 4px solid #4f46e5; /* Indigo Top Accent */
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

/* Input Area - Centered & Properly Sized */
.calc-input-wrapper {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0 28px 0;
}

.calc-input-wrapper label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 10px 16px;
  transition: all 0.2s ease;
  max-width: 100%;
}

.input-group:focus-within {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.currency-prefix {
  font-weight: 700;
  color: #64748b;
  margin-right: 12px;
  font-size: 1.1rem;
}

.input-group input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

/* Results Display Grid - Responsive 3 Columns */
.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.calc-result-box {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Mobile Screen Adjustments */
@media (max-width: 640px) {
  .content-card {
    padding: 20px 16px;
  }
  .calc-results-grid {
    grid-template-columns: 1fr; /* ෆෝන් එකෙන් බලද්දී Boxes එකකට යටින් එකක් වැටේ */
  }
}



/* ==========================================
   FAQ ACCORDION STYLES
   ========================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(79, 70, 229, 0.3);
}

.faq-header {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  gap: 12px;
}

.faq-icon {
  color: #64748b;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f8fafc;
  padding: 0 20px;
}

.faq-content p {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

/* Accordion Active State */
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #4f46e5;
}

.faq-item.active .faq-content {
  max-height: 200px;
  padding: 16px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* ==========================================
   ENTERPRISE FOOTER STYLES
   ========================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 50px 20px 24px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 860px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.footer-tagline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4f46e5;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 320px;
}

.footer-links-group h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #4f46e5;
}

.footer-links a.active-link {
  color: #4f46e5;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.82rem;
  color: #94a3b8;
}

.back-to-top {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.back-to-top:hover {
  background: #ffffff;
  border-color: #4f46e5;
  color: #4f46e5;
}

/* Responsive Footer Adjustment */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}